It would help to know the city and state in answering this question in legal terms.
Practically, I think it would be a bad idea. If you use a shotgun, you would likely kill or severely injure both dogs. A bullet from a pistol or rifle is not going to stop at your property line if you miss...