Not everyone in the world likes to hear dogs bark alllllllllllll the fawking time. It gets really old really quick.
Dogs bark it's what they do. I keep mine inside but they will bark at the occasional squirrel when they are out side if they won't be quiet I take them in. Talk to the owners then call the authorities. Harming the animal won't help.