Firefighters found heavy smoke coming from a second-floor room, which activated the building’s sprinkler system.