Firefighters rescue man who fainted on roof from heat