Iliman Ndiaye's first-half tap-in was enough for Senegal to beat 10-man Mali and book their place in the semi-finals of the 2025 Africa Cup of Nations (Afcon).