There is no risk of gonorrhea or any other STD from getting a hand job. Whatever is causing your symptoms, it's not an STD. Anyway, STD symptoms can't start that fast. The only possible physical cause of your symptoms in any way related to the exposure you describe is chemical irritation due to massage oil, soap, etc getting massaged into the urethra. But even that is unlikely; that would have caused pain the very next time you urinated. A non-physical (emotional) origin sounds possible.
Good luck-- HHH, MD