He should see a urologist. Maybe it is something like epididymitis, which could be treated with antibiotics. I don't know, but it is probably treatable.
Should have been to the doctors the first time it happened because it is not normal for his testicles to feel this way during sex.