This kind of injury is most often caused when dogs are running on tarmac, sand or gravel when they have soft pads. It can take quite a while to heal and should be seen by a vet.
Once healed try dabbing the pads with surgical spirit every day to toughen them up a bit.