1 dead, 1 critical in Brooklyn building fire