I've got a dog like that on my commute. There are other dogs in kennels (which pisses me off to no end) but apparently this one can run free, and does so often by running into the road and chasing me. The first few times it did this, I shot it with my water bottle - it doesn't do it anymore.