Hello and thanks for posting
The pain is due to soft tissue injury
and may be a ligamentum injury. You needs to take rest and allow the injury to heal. Some following instructions helps you in quick healing and reducing pain:
1. Keep you leg elevated as much as you can.
2. Apply elastic bandage
at the site.
3. Do alternate hot and cold
fermentation. Even alone hot fermentation can help.
4. Take analgesic
and anti inflammatory drug in case of worse pain.
5. Do not massage
Hope this will help you. If condition become more pain full than consult your doctor and if needed do your X-ray.