This has to be psychological. There is no medical logic to explain this type of pain. If you are thinking that pain is because of collection of semen in testis then let me tell you that in such cases person gets nocturnal emissions (night discharge). Moreover testicular pain referred to abdomen (your tummy) and not to your back. One of the two things you can do, ignore the pain (pain is not so severe, I suppose) or masturbate (which is not going to harm you so far it is not becoming your compulsion).