Also THat's where your appendix is, if it get's worse go see a doctor.
Make sure nothing changes color around the groin area - if anything internal around the testicles gets twisted, it can restrict blood flow and cause damage.
Possibly a muscle spasm, try a warm Epsom salt bath or compress.