If the officers were shot and killed then others would just hunt down and murder the innocent bystander that did the shooting, and probably hurt a few more for good measure. Any threat real or imagined against police is not tolerated in the US and the police will retaliate when necessary to enforce that.