A gas leak was responsible for a major explosion that destroyed two buildings in Manhattan on Wednesday, killing two people and injuring 18 others, New York Mayor Bill de Blasio said.