Make sure you are hydrated ie lots of fluids .
Can be caused by kidney "gravel" I believe or so my doc told me when I had aching testicle(s)
The theory being that not drinking enough fluids does not clean the kidney out and the pain radiates to the testes.
In my case I had an ache in the kidney region as well that more or less confirmed the above diagnosis