Hi and welcome to HCM. Thank you for your query.
It doesnt sounds like some seirous and permanent testicle damage so just be patient and it should pass spontaneousl. If you notice blood in urine, testicle swelling or any other strange symptom you should visit urologist
. Till that,just take some standard painkillers and avoid masturbation
and sexual intercourse.
WIsh you good health.