The explosion caused a two-storey building to collapse and the two people injured were rescued from an adjacent building, authorities said.