Qatar's Nasser Al-Attiyah claimed victory on stage eight of the Dakar Rally in his Mini as the race crossed through the Andes from Bolivia into Chile.