This pain is most probably due to renal colic
. To exclude causes of renal colic you should have an Ultrasonography Kidney Ureter
and Bladder, Urine R/E and RFTs should be done. Then after the labs treatment should be according to the cause. If all the tests are normal you just take pain killers for a regular period of 07 days that will surely relieve your symptoms.
I hope I am sucessful in solving your query if you have further you can ask me.
Get well soon.
Dr. Azhar Sattar