Rest until the pain has gone. Continuing to train when the foot is painful will only make the injury worse and delay the healing. If it becomes chronic or the tendon degenerates then healing will take much longer. Apply a cold therapy and compression wrap.