Egypt needed a second-half goal from Ahmed Elmohamady to break down Tanzania in the first of two warm-up games before the African Cup of Nations on home soil