Gas pipeline explodes, sets fire to nearby buildings