BBC- Mauritanian President Mohamed Ould Abdelaziz is being flown to the French capital, Paris, after he was shot in the Mauritanian capital, Nouakchott.
He was operated on in Nouakchott and will receive further medical treatment in France.
Before leaving, Mr Abdelaziz, 55, appeared on television from his hospital bed to say he was OK.
A military patrol is said to have mistakenly opened fire on the presidential convoy late on Saturday.
Initially, Mauritanian radio reported Mr Abdelaziz had escaped an assassination attempt.
"I want to reassure the citizens of Mauritania that the operation I underwent yesterday [Saturday] evening was a success thanks to the efficiency of the medical team that carried it out," he said.
Earlier, Communications Minister Hamdi Ould Mahjoub said Mr Abdelaziz was injured in the arm and that his life was not in danger.
President Abdelaziz came to power in a military coup in 2008 in the West African nation. He won presidential elections a year later held under an agreement with coup opponents.
He is seen by the West as a bulwark against Islamists in the region, particularly in neighbouring Mali.
Mauritania launched a joint military operation with Mali last year against the bases of Islamist militants in Mali before a rebellion in that country this year split it in two and hardline Islamists occupied the the country's vast northern region.