Senegalese troops backed by other African forces were poised to enter The Gambia Thursday after President Yahya Jammeh refused to leave office, ignoring a midnight deadline to stand down or face military action.

Jammeh’s army chief said his troops would not fight their entry into the country, as the Mauritanian president flew out of The Gambia following hopes of a last-minute deal to convince Jammeh to hand over power.

“We are not going to involve ourselves militarily. This is a political dispute,” Chief of Defence Staff Ousman Badjie said after eating dinner in a tourist district close to the capital Banjul, eyewitnesses told AFP.

“I am not going to involve my soldiers in a stupid fight. I love my men,” he added. “If they (Senegalese) come in, we are here like this,” Badjie said, making a hands up or surrender gesture.

Jammeh’s mandate ended at midnight (local and GMT) but he has steadfastly refused to leave office after losing elections last month to Adama Barrow, prompting west African states to ramp up pressure on the president following weeks of failed diplomacy.

Nigeria sent troops and fighter jets to Senegal, whose own forces massed on the Gambian border.

Witnesses said the situation was calm in Banjul overnight, although troops had been deployed in the city.

The UN Security Council is scheduled to meet Thursday to adopt a statement on West Africa that will reaffirm the demand for Jammeh to hand over power, diplomats said.

“If a political solution fails, we will engage” in operations in The Gambia, Senegal army spokesman Colonel Abdou Ndiaye told AFP ahead of the deadline.

Unsuccessful attempts by the 15-nation Economic Community Of West African States (ECOWAS) led Mauritanian President Mohamed Ould Abdel Aziz to fly into Banjul at the 11th hour for a final round of talks.

Following the discussions he was hopeful of reaching a peaceful solution, he was quoted as saying by Gambian state broadcaster GRTS.

Mauritania is not part of ECOWAS and diplomats have previously reached out to the conservative desert nation in hopes of brokering an asylum deal with Jammeh.

Shortly before midnight Aziz’s plane landed in Dakar, where he was met by Barrow — who is currently sheltering there — and Senegal’s President Macky Sall, the private Senegalese radio station RFM reported.