Last night, a collared pit bull entered my back yard as my vehicle entered through the gate. Dog was barking and hitting my windows trying to attack my cats. Blinded dog with my flash light and wacked it over the head. Dog ran off. Can I legally shoot such a dog in my back yard at night?