Pain around the testicle is a sign of inflammation of the testicles or its linings, called orchitis
and epididymitis respectively.
This may be due to trauma, strain or an infection; in your case it may be an infection.
You should not worry much about this, it is usually self contained.
But best to consult your physician, a urologist if possible. Usually physical examination will confirm the diagnosis, but an ultrasound may be needed. In any case, the treatment is usually simple and it resolves by itself.
Support: Use underwear which gives firm support to your scrotum. This will help to relieve the pain. On the other hand, the underwear should not be too tight.
Medications: Take Tab. Motrin 200 mg (available OTC) twice daily.
Avoid strenuous exercises for at least a week.
Try these steps out for two to three days. Many cases will resolve by itself. But if it persists, or the pain gets more severe, then see a doctor.
Take care - likely to be orchitis or epididymitis - often self resolving - if it does not resolve then see your doctor.
I hope my answer has helped you. Please click on the green ‘accept' button below for accepting this answer. Feedback/Bonus will be appreciated.