I read the title as your dog attacked a baby and you had to kill it (the baby)
You did the right thing, gj.
The people that try to save animals in that state are terrible, it just leaves them in unbearable pain for longer and assuming they drop it off at a vet they usually just put it down out the back anyway, killing it there was the best thing to do.