A city firefighter is dead after a three-alarm fire engulfed a home in Brooklyn on Sunday afternoon, officials said.

Six-year FDNY veteran Timothy Klein, 31, died in the line of duty while fighting to contain the blaze at a home in Canarsie, according to the FDNY. More than 100 FDNY employees responded to the scene of the fire at 108-26 Avenue N, officials said, and ambulances lined the street, photos from neighbors showed, while white smoke billowed from the dwelling.

Mayor Eric Adams joined with FDNY officials Sunday evening at Brookdale University Hospital Medical Center in the aftermath of the fire.

“Timothy lost his life doing the job we ask of him every day and his fellow colleagues,” Adams said.

Eight city firefighters in total were sent to the hospital Sunday afternoon; five were still hospitalized as of Sunday evening, Adams said. One person at the scene still hasn’t been accounted for, he added.

“I cannot describe the heartbreak of the FDNY today to have lost a member doing what our members do best: putting their lives on the line to save others,” acting FDNY commissioner Laura Kavanagh said.

The building experienced a partial collapse, trapping four firefighters, including Klein, Kavanagh said.

FDNY staff were still working to get the fire under control by 5:30 p.m.Sunday evening, nearly four hours after the blaze began, officials said.

The injured firefighters were taken to Brookdale, Staten Island University Hospital and NYC Health + Hospitals Kings County, an FDNY spokesperson said. A civilian was also injured, but did not go to the hospital.

Brooklyn-based City Councilmember Mercedes Narcisse reportedly visited the scene of the fire. Narcisse commented on Twitter along with photos of the aftermath, showing the charred home and emergency responders still at the scene.

“On the scene at the large fire in Canarsie. Praying for all the residents and the brave members of the @FDNY who responded to the scene,” she tweeted. “Please join me in prayer for those who sustained injuries.”

The city’s Department of Emergency Management warned neighbors to shut their windows and avoid the smoke from the fire.

Jorge Briones, who lives a block away from the scene of the fire, heard the sirens and saw the EMS workers, injured firefighters and white smoke.

“That really just shook me a bit,” he said of the scene.

It was not the first line of duty death for the FDNY this year. Seven-year veteran Jesse Gerhard, who was 33 years old, died in February after suffering a medical episode at his firehouse, officials said.