Updated

In a startling turn against its former ally, Rwanda has arrested Congo rebel leader Laurent Nkunda after he fled a joint operation launched by the armies of the two nations, military officials said Friday.

Rwandan and Congolese troops converged Thursday on Nkunda's stronghold in the Congolese town of Bunagana on the Ugandan border, said Capt. Olivier Hamuli, a spokesman for the joint force. But Nkunda fled farther south, crossing the border into Rwanda where he was taken into custody, he said. The account was confirmed by the Rwandan army.

Nkunda took up arms several years ago against Congo's government with backing from formerly close ally Rwanda, claiming he needed to protect minority Tutsis from the Hutu militias.

But analysts say Rwanda and Nkunda's own commanders had grown irritated by the rebel leader, viewing him as a flippant, authoritarian megalomaniac who allegedly embezzled money from rebel coffers.

Around 4,000 Rwandan soldiers entered Congo this week at the invitation of Congo's government, a startling reversal of alliances between the two longtime enemies. Both nations have said the Rwandans are in Congo as part of an operation to hunt down and disarm thousands of mostly Hutu ethnic fighters who fled to Congo in the wake of Rwanda's 1994 genocide.

Rwandan army spokesman Maj. Jill Rutaremara said Nkunda was detained around 10:30 p.m. Thursday because "a force loyal to him" resisted the joint operation to hunt the Hutu fighters.

"Whoever resists the smooth running of the joint operation is a barrier," Rutaremara said by telephone from Tanzania. "He was a barrier."

Rutaremara said Nkunda surrendered peacefully, but gave few details and declined to say what the government planned to do with him. "What is important is that he was arrested. Nkunda was in Rwanda illegally."

Congo's government spokesman Lambert Mende said Nkunda's forces resisted in Bunagana and exchanged fire with Rwandan and Congolese troops before fleeing.

Mende called the arrest, "a positive development for pacifying and securing the region," and offered hope Rwanda would extradite Nkunda to face trial. Congo's government issued an international warrant against Nkunda in 2005 for alleged war crimes and human rights abuses.

Nkunda was the rebel leader behind months of fighting late last year with the army in eastern Congo. The fighting displaced more than 250,000 people as Nkunda's forces advanced toward the provincial capital, Goma.

Earlier this month, Nkunda suffered a major blow when his ex-chief of staff, Bosco Ntaganda, formed a splinter movement. And in a dramatic reversal last week, Ntaganda announced his forces would work together with Congo's army to fight the Hutu militias and eventually integrate into the army.

Ntaganda may have turned on his former boss because he was afraid months of growing distrust might have prompted Nkunda to turn him over to the International Criminal Court in The Hague, Netherlands, where he is wanted for the alleged forced conscription of child soldiers in the northern Ituri region five years ago.

Though details of the agreement to allow Rwandan troops on Congo soil have not been made public, analysts speculate the government may have promised not to hand Ntaganda over for extradition in exchange for his cooperation.

Rwanda has been under international pressure for months to use its influence over Tutsi rebels to end the conflict and the breakthrough agreement may have been borne out of the split within Nkunda's movement that both Congo and Rwanda were quick to exploit.

Nkunda has spent much of the last decade-and-a-half embroiled in war in the region. As a young Congolese in exile in Uganda, he fought with Tutsi-led Rwandan forces that stopped Rwanda's genocide 15 years ago, ousting that country's Hutu government.

He went on to become a senior commander within a Rwandan-organized Congolese rebel group which held a huge swath of the east during a 1998-2002 war.

After a peace deal ended that fighting, he joined Congo's army but quit in 2004 to launch his rebellion.

Since then, Nkunda has commanded thousands of fighters in the rural hills of eastern Congo, running his own fiefdom, collecting taxes and launching military operations against the army and Hutu militias.

The New York-based rights group Human Rights Watch says that during fighting in east Congo last year, Nkunda's fighters massacred dozens of civilians in the town of Kiwanja after skirmishing with a pro-government militia group known as the Mai Mai.