Call 911 and do what you have to in the process. Better if you let law enforcement know what is going on. If you are in a position that you can't call 911 do what you have to then call.
Call 911. But no matter what the actual emergency is, tell them there’s a mean looking dog in your yard. They’ll be there inside a minute, guns blazing.