Chances of getting an STD that would give you those symptoms are really low, unless you had unprotected oral. Then you could get gonorrhea or something called NGU, which is an infection in your urethra.
It could also be a totally unrelated prostate issue, so you should really get this checked out by a doctor.