The deaths of three officers in Pennsylania's York County bring the number of officers killed by hostile gunfire this year to 31, one source said.

Pennsylvania State Police Commissioner Christopher Paris confirmed Wednesday that the suspect died after being shot by authorities.

Officials said the suspect has been "neutralised" and there is no further threat to the public.