If you shoot a dog with a paintball gun then you can get in trouble for animal cruelty.
Personally dogs in my yard get very little chance. If they are scared and lost then they get motivated to leave. The last lost dog was all excited to see me and wouldn't leave even though I was hosing it...