Officials said the explosion damaged nearly three feet of the railway line, scattering metal fragments several metres away.