The train was travelling from south Egypt to Cairo when two carriages went off the rails shortly after midnight in the Giza neighbourhood of Badrasheen, officials said.