The passenger train was travelling from Egypt's capital to Aswan in the south when it derailed, overturning carriages.