The New York City Fire Department said the apartment building in Flatbush, Brooklyn, partially collapsed, with reports of people trapped beneath the wreckage