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

Feed it raisins. Seriously.