The local authorities said the cause was an accident at a warehouse that held explosives for mining operations.