Hi,
Welcome to Healthcaremagic.
Based on the description of the condition I suspect of it be having a hair line
fracture , hence do get a xray of the ankle done which can find it out and the treatment depends on the depth and the severity of the fracture.
Do immobilize the ankle with a ankle brace which will prevent progression of the problem.
Wish you good health.