A major fire broke out on the roof of an apartment on Manhattan's Upper East Side neighborhood, injuring at least three firefighters and the building superintendent, officials said.