I believe the Death penalty in NY applies if a policeman is killed.
When we had a death penalty, it applied in any circumstance where the defendant committed murder with one of twenty-some aggravating (twenty-two, I think) factors. Killing a policeman was one, wonton torture was another IIRC.