NEW YORK — Malfunctioning electric space heater caused fire that killed 19 people in New York City, fire commissioner says.