Adrián Mosquera struck early and substitute Samuel Martínez Valencia scored the winner after Daniel Tamer had levelled for Egypt.