A sheriff's deputy and a police officer have died after a shootout with a suspect in Salina, New York, who had fled a traffic stop, authorities said.