Electrical failure caused an explosion that sparked a fire during a shift change with almost 800 men underground.