There is no risk from this for any STD, including HIV.
See your doctor about your symptoms - there are lots of things that can cause strange symptoms, including prostatitis (inflammation of the prostate), which can cause pain or burning at the tip of your penis.
It wouldn't be related to your encounter, but definitely get it checked out if it lingers.