Mane scored the only goal 12 minutes from time in a tense clash at Tangier Grand Stadium in Morocco to send his country through to Sunday's final.