Four children are among 12 people killed in a devastating fire that tore through a New York apartment building as terrified residents rushed to escape.