Thanks for posting your query at DoctorSpring.com
I can understand your concern.
It would have been ideal if you hadn't used it. But now since you have , there would be a possibility of getting bacterial infection.
HIV and STD doesn't transmit like this, is mainly through sexual transmission. HIV virus survives outside the body for only 5 mins so it wouldn't be a very likely possibility.
I would suggest that you take it as it comes. In case you get any discharge per vaginum you could visit your doctor for the same.
Please let me know if you have any queries