Like sure, areas with higher rates of criminal violence will probably have more police homicides, but it's likely enough that you can pair things up based on rates of criminal violence.
But there are a lot of cops in the USA, and plenty I'm sure have nice, cozy jobs, and then there are some who spend thee majority of their career policing areas that more closely resemble warzones or 3rd world nations but this isn't the majority by any means.
Expanding that, the deadliest part of being a police officer is almost certainly the driving component. No gun will save you from smashing your SUV into a pole. And the aftermarket modifications made to the vehicles aren't crash tested. A police cruiser is full of potential projectiles.