Dear madam, it sounds like something more serious. It could be just a cramp caused by abdominal bloating
but if you have some associated symptoms such as fever
or abdominal muscle guarding or blood in the stool u should go to ER as soon as possible. If not, then just wait to see if this will happen again and then should some detailed gastoent. workup de done. Try to detect and avoid food that triggers bloating and discomfort.
Wish you good health, Dr. I. romich