Pakistan has handed over a captured Indian pilot, as the two nuclear powers scale back their confrontation.

Pakistani TV footage showed the pilot, identified as Wing Commander Abhinandan Varthaman, walking across the Kashmir border near the town of Wagah just before 9pm local time.

On the Indian side of the border, Indian officials greeted the pilot, who was dressed in a dark blue suit, accompanied by a representative of the International Committee of the Red Cross.

Islamabad has said the handover was a gesture of peace that could defuse tensions and avoid another war between the two nations.

Mr Varthaman was shot down on Wednesday while flying a MiG-21 fighter jet above Pakistan-controlled Kashmir after a dog fight with a Pakistani JF-17.

Pakistan shoots down Indian fighter jets: Reaction in pictures Show all 28 1 /28 Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistan shoots down Indian fighter jets: Reaction in pictures Activists of Al-Badr Mujahideen, an islamic militant group, burn an effigy of Indian Prime Minister Narendra Modi during an anti-India protest in Peshawar, Pakistan AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures A Pakistani girl holds a light candle during a vigil for peace in Lahore on March 3 AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures School children react as they celebrate the release of Indian Air Force pilot Wing Commander Abhinandan Varthaman by Pakistan at a school in Ahmedabad Reuters Pakistan shoots down Indian fighter jets: Reaction in pictures Indian pilot, Wing Commander Abhinandan, stands under armed escort near Pakistan-India border in Wagah Reuters Pakistan shoots down Indian fighter jets: Reaction in pictures Indian Border Security Force soldiers patrol along the border with Pakistan EPA Pakistan shoots down Indian fighter jets: Reaction in pictures A videograb allegedly shows the captured Indian Air Force pilot in the custody of Pakistani military SWNS Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani civil society activists hold anti-war signs during a peace rally in Islamabad AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani civil society activists hold anti-war signs during a peace rally in Islamabad AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures Activists of Al-Badr Mujahideen, an islamic militant group, burn an effigy of Indian Prime Minister Narendra Modi during an anti-India protest in Peshawar, Pakistan Reuters Pakistan shoots down Indian fighter jets: Reaction in pictures Kashmiri villagers look on at the smouldering wreckage of an Indian fighter jet after it was shot down by the Pakistani military AP Pakistan shoots down Indian fighter jets: Reaction in pictures Indian soldiers and Kashmiri onlookers stand look on as an Indian army helicopter lands near the site where an Indian Air Force jet was shot down by the Pakistani military AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures An Indian soldier gestures near the wreckage of an Indian Air Force fighter jet that was shot down by the Pakistani military AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures Supporters of a Pakistani religious group Islami Jamiat-e-Talaba brand Indian Prime Minister Narendra Modi a terrorist at a rally to condemn Indian aggression AP Pakistan shoots down Indian fighter jets: Reaction in pictures Indian soldiers and Kashmiri villagers look on at the smouldering wreckage of an Indian fighter jet after it was shot down by the Pakistani military AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures India's Border Security Force soldiers patrol along the fenced border with Pakistan on February 26 Reuters Pakistan shoots down Indian fighter jets: Reaction in pictures Protesters in Pakistan march against Indian Prime Minister Narendra Modi after the Indian airstrike on allege Pakistan terrorist camp EPA Pakistan shoots down Indian fighter jets: Reaction in pictures Supporters of India's ruling Bhartiya Janta Party workers hold Indian flags as they celebrate the Indian airstrike on allege Pakistan terrorist camp AP Pakistan shoots down Indian fighter jets: Reaction in pictures Protesters in Pakistan march against Indian Prime Minister Narendra Modi after the Indian airstrike on allege Pakistan terrorist camp EPA Pakistan shoots down Indian fighter jets: Reaction in pictures People in India burn an effigy that represents Pakistan as they celebrate the Indian airstrike on allege Pakistan terrorist camp Reuters Pakistan shoots down Indian fighter jets: Reaction in pictures Indian soldiers and Kashmiri villagers look on at the smouldering wreckage of an Indian fighter jet after it was shot down by the Pakistani military AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures Bhartiya Janta Party workers hold Indian flags as they celebrate the Indian airstrike on allege Pakistan terrorist camp EPA Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani Kashmiris in the border town of Chakoti walk past India-bound cargo trucks that are parked as the road to India is closed AP Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani Army soldiers escort journalists to the scene where Indian fighter jets struck in a violation of Pakistani airspace EPA Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani Army soldiers escort journalists to the scene where Indian fighter jets struck in a violation of Pakistani airspace EPA Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani Army soldiers escort journalists to the scene where Indian fighter jets struck in a violation of Pakistani airspace EPA Pakistan shoots down Indian fighter jets: Reaction in pictures Workers enter a concrete bunker that they have built in a residential area near the border Reuters Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani soldiers and journalists gather at the site where Indian fighter jets struck in a violation of Pakistani airspace AFP/Getty Pakistan shoots down Indian fighter jets: Reaction in pictures Pakistani soldiers and journalists gather at the site where Indian fighter jets struck in a violation of Pakistani airspace AFP/Getty

Pakistani foreign minister Shah Mahmood Qureshi said earlier on Friday the pilot would be released “as a gesture of peace and to de-escalate matters”.

Before the pilot was released, Pakistani television stations broadcast a video of him, looking cleaned up, thanking the Pakistani army for treating him well.

“The Pakistani army is a very professional service,” he said.

Throughout the day, crowds on the Indian side thronged the road to the crossing, shouting nationalist slogans and waving Indian flags.

Also on Friday, Pakistan’s civil aviation authority partially reopened the country’s airspace, allowing travel to four major cities, in another sign tensions with India were de-escalating.

There was some firing along the contested border dividing Kashmir over the day, according to a spokesman for India’s defence ministry, but the hostilities fell short of previous days.

Indian pilots captured after being shot down by Pakistan forces

World powers have urged restraint from the two nations, as tensions escalated following a suicide bombing that killed at least 40 Indian paramilitary police in Indian-controlled Kashmir on 14 February.

The US has been actively mediating, to avert any risk of the two countries sliding towards their fourth war since independence from British colonial rule in 1947.