That seems oversimplified. Do you have any data about the trends of gun possession by criminals or gun crime related to attacks on police?
There are also a lot of innocent people being shot too, or the visibility of it has increased.
Edit: also, could it be police are less trained or more fearful than in the past?