Mayor Zohran Mamdani said eight people were killed, including two children, when a three-story building fell onto a construction site. At least 18 others were injured.

Rescue workers stopped searching the rubble of a collapsed apartment building in Brooklyn on Thursday, saying they had determined there were no more victims.

Earlier Thursday, Mayor Zohran Mamdani said at least 18 people, including four firefighters, had been injured when the building collapsed on Wednesday afternoon. Rescuers spent almost 24 hours digging through the site, even as a downpour on Thursday left shin-high pools of water on the surrounding streets.

“This has been a devastating evening and morning for our city,” Mr. Mamdani said. “We are mourning too many people who we love.”