You seemed to have sprained your foot. Give it rest and apply some painkiller ointment as diclofenac
over it and start taking anti inflammatory tablets as well. A temporary plaster will help you in quicker recovery. Do not massage
the area. Visit an orthopaedician if possible.
Wishing you a speedy recovery