Azerbaijan said Friday its troops had entered a district bordering Nagorno-Karabakh that was previously home to Armenian separatists, as part of a Russian-brokered deal to end weeks of fighting in the region.

Troops moved into the district of Aghdam, one of three to be ceded, the Azerbaijan defence ministry said, a day after Armenian soldiers and tanks withdrew from the territory.

Azerbaijan is also to recover the Kalbajar district wedged between Nagorno-Karabakh and Armenia on November 25 and the Lachin district by December 1.

Armenian soldiers and residents were pulling out of Aghdam district before a deadline as part of a peace deal
Armenian soldiers and residents were pulling out of Aghdam district before a deadline as part of a peace deal AFP / Karen MINASYAN

Armenian residents of Aghdam hurriedly picked pomegranates from trees around their homes and packed vans with furniture before fleeing ahead of the deadline to cede the mountainous province.

Ahead of the handover, residents set their homes on fire, leaving nothing behind for their bitter rivals.

Fierce clashes between Azerbaijan's forces and Armenian separatists broke out in late September in the Nagorno-Karabakh region. The fighting lasted six weeks, leaving thousands dead and displacing many more.

Map locating the disputed region of Nagorno-Karabakh with zones of control.
Map locating the disputed region of Nagorno-Karabakh with zones of control. AFP / Jonathan WALTER

The ex-Soviet adversaries agreed to end hostilities last week within the framework of a accord brokered by Moscow that includes deployment of Russian peacekeepers and the cession by Armenia of swathes of territory.

Turkey has said that some of its forces would also observe the ceasefire arrangements from a coordination centre in Azerbaijan, but Putin has emphasised that Turkish troops would not be present in Nagorno-Karabakh.

Armenian residents of Aghdam rushed to leave before the deadline to cede the mountainous province back to Azerbaijan
Armenian residents of Aghdam rushed to leave before the deadline to cede the mountainous province back to Azerbaijan AFP / Andrey BORODULIN

In a televised address, Azerbaijan President Ilham Aliyev called Armenians who destroyed property as they fled a "wild enemy".

"They are embarrassing themselves in front of the whole world," he said.

A truck carries a barn as Armenian refugees leave the village of Nor Maragha near Agdam
A truck carries a barn as Armenian refugees leave the village of Nor Maragha near Agdam AFP / Andrey BORODULIN

On Thursday, people celebrated in Baku, with cars parading through the city with flags of Azerbaijan ally Russia and Turkey.

Separatists in Nagorno-Karabakh and several surrounding districts had captured the territory and claimed independence following a post-Soviet 1990s war that left around 30,000 dead.

Their claim was not recognised internationally, however, even by Armenia.

IMAGESThe Armenians heave freshly-slaughtered pigs into the back of a van as they rush to pack every single one of their possessions before Azerbaijani forces arrive. As the village of Nor Maragha empties, even an entire house is loaded onto a flatbed tru
IMAGESThe Armenians heave freshly-slaughtered pigs into the back of a van as they rush to pack every single one of their possessions before Azerbaijani forces arrive. As the village of Nor Maragha empties, even an entire house is loaded onto a flatbed truck so the incoming Azerbaijanis have nothing left to recover. AFPTV / Andrey BORODULIN

As part of the peace accord, Armenia agreed to return 15 to 20 percent of Nagorno-Karabakh territory captured by Azerbaijan in recent fighting, including the historic town of Shusha.

A Russian peacekeeping force totalling 1,960 troops has now deployed to the region, the defence ministry said Friday, and set up checkpoints and observation posts along the strategic Lachin corridor that connects Nagorno-Karabakh with Armenia.

While Armenians in the provinces to be handed over to Azerbaijan have left in an exodus, the Russian mission on Thursday said it had bussed 3,000 residents back to the regional capital Stepanakert and other areas.

Russian President Vladimir Putin said Friday that providing humanitarian aid to residents of "severely hit" Nagorno-Karabakh was now a priority, and called on the UN and the World Health Organization to send delegations to the region.

He maintained that the peacekeepers had "helped end the bloodshed and prevent further casualties."

Most of Azerbaijan's south-western district of Aghdam has been under the control of Armenian separatists since 1993. Before the post-Soviet war it was inhabited by 130,000 people -- mostly ethnic Azerbaijanis who were expelled from their homes.

In his national address Friday, Aliyev promised Azerbaijanis that they would return to "ancestral lands".

UNESCO on Friday said that Director General Audrey Azoulay had proposed a preliminary field mission to the region during a meeting with representatives of Armenia and Azerbaijan to ensure the protection of cultural heritage sites.

Armenia's health ministry said this week that more than 2,400 troops had been killed in the fighting. Azerbaijan has not revealed its military fatalities.

The presidency announced Friday the replacement of defence minister David Tonoyan.

Armenian police told AFP they had detained dozens of protesters Friday at a rally in Yerevan where demonstrators calling for Pashinyan to resign formed a human chain and blocked major roads.