Dakar, Sep 16 (AP) The withdrawal of US troops from Niger is complete, an American official said Monday.

A small number of military personnel assigned to guard the US Embassy remain, Pentagon spokesperson Sabrina Singh told reporters.

Also Read | 'Misinformed and Unacceptable': India Hits Out at Iran's Supreme Leader Ayatollah Ali Khamenei's Remarks on Muslim Community in South Asian Country.

Earlier this year, Niger's ruling junta ended an agreement that allowed US troops to operate in the West African country. A few months later, officials from both countries said in a joint statement that US troops would complete their withdrawal by the middle of September.

The US handed over its last military bases in Niger to local authorities last month, but about two dozen American soldiers had remained in Niger, largely for administrative duties related to the withdrawal, Singh said.

Also Read | Donald Trump Assassination Attempt: Suspect Ryan Wesley Routh in Apparent Assassination Attempt Targeting Former US President Camped Outside Golf Course for 12 Hours, Records Show.

Niger's ouster of American troops following a coup last year has broad ramifications for Washington because it's forcing troops to abandon critical bases that were used for counterterrorism missions in the Sahel. Groups linked to al-Qaida and the Islamic State group operate in the vast region south of the Sahara desert.

One of those groups, Jama'a Nusrat ul-Islam wa al-Muslimin, known as JNIM, is active in Mali, Burkina Faso and Niger, and is looking to expand into Benin and Togo.

Niger had been seen as one of the last nations in the restive region that Western nations could partner with to beat back growing jihadi insurgencies. The US and France had more than 2,500 military personnel in the region until recently, and together with other European countries had invested hundreds of millions of dollars in military assistance and training.

In recent months Niger has pulled away from its Western partners, turning instead to Russia for security. In April, Russian military trainers arrived in Niger to reinforce the country's air defences. (AP)

(This is an unedited and auto-generated story from Syndicated News feed, LatestLY Staff may not have modified or edited the content body)