Thanks for asking your query here.
For pain relief, I would recommend pain-killers like Paracetamol
etc. and rest to the leg.
Based on the description given, I feel it is advisable to see an Orthopaedic doctor.
I've in past seen patients presenting in a similar way and turned out to have injury
to muscle or tendon and the best person to guide will be Orthopod
Hope you recover soon
Dr Tejas Shah