In the Harry Potter and the Chamber of Secrets book, Dobby enchanted a Bludger to knock Harry in Quidditch match. Well, he didn't want to kill him. He actually wanted to save him by injuring him.
Dobby mopped his bulging eyes and said suddenly, 'Harry Potter must go home! Dobby thought his Bludger would be enough to make -'
'Your Bludger?' said Harry, anger rising once more. 'What d'you mean, your Bludger? You made that Bludger try and kill me?'
'Not kill you, sir, never kill you!' said Dobby, shocked. 'Dobby wants to save Harry Potter's life! Better sent home, grievously injured, than remain here, sir! Dobby only wanted Harry Potter hurt enough to be sent home!'
Chamber of Secrets, chapter 10: "The Rogue Bludger"
What made Dobby think that Hogwarts would send grievously injured Harry home in a muggle world which could only provide inferior muggle treatments? From what I can tell, if someone isn't dead, they can heal him to perfect health (they literally grew Harry's bones). If they can't, surely muggle world couldn't either.