“And, the shooting only began when the officers were attacked by pit bull.”
The only thing I can think of is it must not have understood their shouts and screams as they broke in the door and came into the house.
Freegards
A pit bull was turned loose on the officers and they were shot at. That will get you killed.