The three-story structure in Flatbush collapsed just after 4 p.m.