The story I read said this:
the dog began to run towards the officer while barking
It’s the ones that don’t bark while running towards you that you have to worry about.