A 35-year-old man was flown to a hospital after a fire broke out while he was working at a home.