ABUJA (Reuters) - Nigeria plans to withdraw much of its 1,200-strong contingent from international peacekeeping missions in Mali and Sudan's Darfur region saying the troops are needed to beef up security at home, sources familiar with the matter said on Thursday.
Nigeria is battling Islamist group Boko Haram, but the troop withdrawal comes just 10 days before a presidential election in Mali, which is meant to restore democracy after a coup and the occupation of the desert north by al Qaeda-linked rebels last year.
The 12,600-man U.N. mission in Mali is rolling out to replace most of the 4,500 French forces who intervened successfully in January to halt an Islamist advance south.
"It seems Nigeria is pulling out its infantry but leaving some other elements ... I think that it is because the troops are needed at home," said a Nigeria-based diplomat.
A Nigerian military source and two other diplomats in West Africa confirmed the planned pullout, saying it was mainly due to the need to tackle the country's own insurgency.
The U.N. peacekeeping department said Nigeria would also withdraw some of its troops from the U.N.-African Union force UNAMID in Sudan's conflict-torn Western Darfur region as well.
"We can confirm that Nigeria has officially notified (U.N. peacekeeping) of its intention to withdraw some of its troops - up to two battalions - from UNAMID," said U.N. peacekeeping spokesman Kieran Dwyer. The United Nations was in discussions with other countries to replace the Nigerians, he said.
The standard size for a U.N. peacekeeping battalion is 850 troops but that is just a recommendation.
It was not immediately clear how many Nigerian troops would be withdrawn from Mali. One of the diplomats said engineers and signals operators would be amongst those left behind with the United Nations.
A two-month offensive against Boko Haram in northeast Nigeria since President Goodluck Jonathan declared a state of emergency in mid-May has stretched its security forces and new rotations are needed to go in.
Underscoring the fragile security in northeast Nigeria, Boko Haram - whose nickname roughly translates as 'Western education is sinful' - has targeted at least four schools there over the past month, killings dozens of pupils.
Mali's own army remains weak, the result of years of corruption and neglect that led to a several defeats by militants in the north followed by a coup by disgruntled officers in Bamako. Attacks on peacekeepers this month illustrated how delicate security remains in Mali's north.
European Union troops are training the Malian army but are not expected to complete the program until next March at the earliest.
Former minister Tiebile Drame, who drafted last month's peace deal between Mali's government and northern separatist rebels, pulled out of the July 28 presidential elections on Wednesday, arguing that Western pressure was pushing to Mali into holding them before it is ready.
The withdrawal of Nigerian troops from Darfur comes at difficult time for UNAMID, which according to the U.N. peacekeeping department has over 19,000 soldiers and police.
Violence has surged since January as government forces, rebels and Arab tribes, armed by Khartoum early in the conflict, fight over resources and land. Peacekeepers are often attacked when they try to find out what is happening on the ground.
Seven peacekeepers were killed and 17 wounded when they came under heavy fire from gunmen in Darfur on Saturday, UNAMID said, the worst toll from a single incident since its deployment in 2008.
(Corrects reference to U.N. peacekeeping spokesman, paragraph 7)
(Reporting by Tim Cocks in Nigeria, David Lewis in Dakar, Pascal Fletcher and Louis Charbonneau at the United Nations.; Editing by Daniel Flynn and Christopher Wilson)