A New York City firefighter remained in critical condition Monday morning after he underwent cardiac arrest while battling a house fire in Brooklyn on Sunday, city officials said.

According to a statement from Mayor Eric Adams and FDNY Commissioner Robert Tucker, the firefighter was working on a two-alarm blaze at an apartment building on Lafayette Avenue in Bushwick that had broken out around 11:30 a.m.

The firefighter, whom officials did not immediately identify, had a medical episode and was treated by emergency medical workers at the scene before being rushed to Wyckoff Heights Medical Center. He was later transferred to Lenox Hill Hospital for continued treatment.

Four other people sustained minor injuries in the blaze, and seven were displaced, according to the NYPD and FDNY. The cause of the fire was still under investigation Monday.

This is a developing story based on preliminary information from the FDNY and NYPD and may be updated.