Santiago Sánchez struck before half-time and Daniel Chirinos sealed it after Algeria's Yacine Abed was sent off.