Carlos Marin, head of the Madrid City Council Fire Department, said the explosion was linked to gas, but the type and exact cause were still unclear.