A New York forest ranger died battling one of a number of wildfires in New Jersey and New York amid dry conditions that have prompted air quality warnings in both states, authorities said Sunday.