About 150 homes were evacuated overnight on Saturday after a gas explosion set off a four-alarm blaze at a public housing complex.