Eight people, six adults and two children, were killed and at least 18 injured when a three-story building at 1321 Flatbush Avenue in Brooklyn collapsed Wednesday beside an active construction site, city officials said. Two of the dead were construction workers, and four firefighters were among the injured.

“These were our friends and our neighbors, parents and children, young families building their lives in our city,” Mayor Zohran Mamdani said Thursday.

The FDNY ended its rescue operation Thursday evening and said no more victims remain in the rubble. Most of the injured who were hospitalized are in stable condition, the mayor said, and one is in critical condition. Rain complicated the search.

Officials have not said what caused the collapse, and investigators are examining whether the adjacent construction played a role. The disaster is likely to bring fresh scrutiny of construction oversight in a city where excavation and redevelopment often take place feet from occupied buildings.