Two people have died in connection with a cluster of Legionnaires’ disease cases in New York City, the city’s health department said.