Residents’ power was cut as firefighters worked for three hours to free the man.