Thanks for your query.
It could be epididimitis.
That is infection of epididymis
which is located on top of testicle.
Kindly visit a general surgeon
Do not delay, since the infection might spread to surrounding areas.
Hope I have answered your query.
I will be available for your followup queries if any.
Wishing you good health.