What you're feeling could be any number of things, from simple to complex. I'd recommend seeking medical attention, just to be safe, because it could be nothing, or it could be something more serious. No one here is qualified to answer that question accurately over an internet forum, without seeing you in person and doing the proper assessment (no offense to anyone here who knows a lot about sports injuries).
Now personally, I would just lay off of it for a while, not doing anything to aggravate that part of my body, and if I was still feeling the same pains after a day or two, then I'd go to the doctor. But that's just what I would do. Because if it does happen to be a hernia (even if it's minor), you want to take care of that as soon as you can. Best to play it safe rather than doing something you may regret later down the road.
Do what you think is best for you. But whatever you decide to do, just take it easy for a while as not to further your injury.