Would it be illegal to shoot my neighbor's dog with a BB gun?

haha
god

maybe i can rig an airhorn to go off whenever the dog barks…