The only risk that involves needles is intravenous injections with shared needles. HIV has to enter the bloodstream in order to infect a person, and that isn't easy, and isn't accomplished via intramuscular injection.
Even in a third world country, poor hospital, there is no reason to suspect a reused needle (which is a very common fear of those who have an HIV ocd/anxiety issue.) I would assume that awareness is such that even those hospitals would not risk reusing needles. And an IM injection is not an IV injection and it is IV injections of shared needles between drug addicts that is known to be a risk for HIV, not intramuscular injections. I would not worry.