Pellet gun. When I used this technique I was able to train the neighborhood dogs to stay the hell away from my yard, in a way that didn't lead to unpleasant neighbor relations.