That happened to me once while jogging. A dog chased me so I turned around and
tried to scare it away. I started jogging again and it started chasing me again and this time it nipped at my heels so I turned around and kicked it square in the face as hard as I could. It scampered off and I never saw it again.