You've got to use some common sense (Mark Twain opined the problem with it is that its not common.) You can't always depend on the opinions of local police, who prefer to keep their jobs easy and not have idiots blasting way. In some states city law or ordinance will control. Other places state law applies.
Learn your own regions laws.
Where I live, its generally legal to shoot a viscous animal. I haven't read the law in a few years, but it includes dogs but isn't limited to them. Any attack or even snarling and approaching has been held (in the distant past) to be enough to trigger your conclusion they are viscous. It specifically does include dogs and CCW carriers. To be safe, if you feel you have a problem, eliminate one problem by purchasing a hunting license. Don't show it to anyone who asks, but having it might stop the fish and game guys from getting involved.
For me, even a raccoon snarling and bluffing a charge on my porch or deck is enough evidence for me to end the reign of terror. The first time it happened was right after I moved into this house. The Coon was dismantling my garbage bag. I opened the door to shoo him away, and he charged! I just closed the door. Thought about it as he went back to distributing my garbage all over. Thinking maybe it was a fluke or I was mistaken, I gingerly opened it again. Same result. So I went to the safe, selected a safe queen (a M43), loaded it up and gave him a 3rd chance. He made a bad mistake. Inside city limits or not, I demand the right to open my door and not get attacked.
Coyotes in my yard would result in the same thing. I'm the intolerant type.
How to catch them in the act? How to know where and when they're around? Easy. Set up a PIR array. PIR is passive infra red, as in motion detectors. If you're handy with stuff, alarm motions can tell you a lot. If you're not, just go to Lowes or Home Despot and buy one of the wireless security lights. Put new batteries in the sensors. Place them in likely places (in a direction with a relatively safe backstop). Then mount the light or cool little expansion strip that activates where you'll be sitting or sleeping. When it goes off, you can be pretty sure you've got a prowling critter.
Always be sure of your target. You'd hate to shoot a prowler, peeping tom, or burglar.....

Maybe.