The pain you reported might be caused by overstretching of certain lower back muscles which put pressure on the nerves that leave the spine in the vicinity. You might want to apply non-steroidal anti-inflammatory creams topically. Avoiding exercises that include lower back muscles is recommended, too.
One other possible cause for your condition is minor kidney stone. If the pain does not disappear within several days of rest, you might want to visit your doctor for urine laboratory tests and eventually renal ultrasound to confirm or rule out the presence of the kidney stone.