They wanted to give the pregnant dog a “last injection”, but the girl was already on her way to the shelter for the dog