Hi and welcome to Healthcare magic.Thank you for the query.
It can be inflammation of tendond or muscle,but it should heal spontaneously. If this persist for more than 2 weeks or some signs of inflammation occur, you should do xray to rule out osteomieliitis. Also, try to rest with this leg, apply cold
compresses and keep it elevated as much as you can.
Wish you good health. Regards