This follows a solar penetration which penetrates distal phalanx, usually a nail. Bacteria can enter the bone and causes osteomyelitis leading to sequestrum (area of bone dies and separates). This causes a raised digital pulse (single foot), discharge and pain with hoof testers at the site of penetration. The initial radiographs may be normal and ideally you want to radiograph with nail still in place.
In some cases, the lameness resolves however is lameness does not resolve, septic pedal osteitis diagnosed on repeat radiographs.