Yes. If you see your neighbor's dog harassing your livestock, by chasing them or worrying them, you are justified in killing the dog with no liability to your neighbor, so long as your livestock are on your property when they are being harassed. You may also notify the neighbor about their dog's behavior and they will have 24 hours to kill their dog after you have notified them, and if they do not kill their dog you can notify a law enforcement officer who will kill the dog.
This rule does not apply to dogs that are being used to herd cattle under the direction of their owner, or dogs that are being used for hunting or predator control under the direction of their owner.