A petroleum-laden truck crashed and caught fire near Giza, beside the Nile River and close to Cairo, killing at least 31 people and injuring at least 21, officials said.