The dog was inside the apartment which they illegally entered. They should never have come into contact with the dog at all.
If the dog had actually bitten someone there are proper procedures to deal with that situation. Cops aren’t a murder squad who get to apply justice on the fly.