There is no law that says a cop called on a 911 call can’t shot an unconstrained dog if they fear the dog will attack them.
A dog inside a home is lawfully contained.
A fear that one will be attacked is a fear, not an example of rationality. You are attempting to justify a government employee’s irrational behavior.
Why are you attempting to justify a government employee’s irrational behavior?