You got it on purpose? I dont think it ends pregnancy but it could affect the babys health,you need to tell your mom and doctor. And if you dont want the baby you need to speak to someone about your options an stop intentionally trying to hurt it.
Talk to your doctor. I do not think a Depo shot will end a pregnancy, but what else it might do to a pregnancy, I don't know.