Hi dear,
It could be minor strain in lower back muscles. Avoid doing gym for few days until your pain subsides.. Also, whenever you do gym, do exercises for lower back also.
Next Steps
Consul a good physiotherapist nearby you. Or consult a Orthopedician, they will give you painkillers.
Health Tips
Apply ice pack at that area thrice a day for 10-15 min.