Image copyright AFP Image caption Wing Commander Abhinandan Varthaman

Dramatic new details have emerged about the capture of Indian air force pilot Abhinandan Varthaman by Pakistani forces.

People in Horran village threw stones at the pilot, who fired several warning shots, eyewitnesses told the BBC.

The jet was shot down in Pakistan-administered Kashmir on Wednesday after a dogfight between Indian and Pakistani warplanes.

Pakistan released the pilot on Friday.

Prime Minister Imran Khan revealed the decision in parliament after a speech in which he said Pakistan was focused on de-escalation.

India struck militant camps in Pakistan on Tuesday after an attack on its security forces earlier this month. Pakistan said it had no choice but to retaliate with air strikes on Wednesday.

Horran's village chief recounted Wednesday's dramatic capture in an interview with the BBC.

"My objective was to capture the pilot alive. I had seen the Indian flag on his parachute and knew he was Indian," said Mohammad Razzaq Chaudhry.

The 58-year-old said he saw the MiG-21 fighter jet getting hit and falling to the ground on Wednesday morning. He said he had rushed to the spot as other villagers also headed there.

"I was afraid they will harm him or he would harm them," said Mr Chaudhry, who is affiliated with Prime Minister Imran Khan's PTI party.

On reaching the site, he heard the pilot ask some of the villagers whether he had landed in India - and one of them, a quick-thinking young boy, said yes.

Image copyright Pakistan Information Ministry Image caption Pakistan's information ministry tweeted a video purporting to show a captured Indian pilot

"He unbuckled himself from his parachute and raised patriotic slogans but the boys around him responded by saying, 'Long live Pakistan!' That is when he pulled out his gun and fired in the air to scare them."

But, Mr Chaudhry added, this caused the men around the pilot to become aggressive. He said they picked up stones and as they hurled them at him, he started to run while firing more shots in the air.

"The boys chased him until he fell into a stream and one of my nephews who was also armed shot him in the leg," Mr Chaudhry said. "My nephew asked him to drop his pistol, which he did. Then someone else caught him and pinned him down to prevent him from using any other weapon that he might have."

He said the pilot then pulled out papers from his pocket and tried to stuff them all in his mouth to destroy them. But the villagers were able to snatch some of the papers from him, which they later gave to the army.

"Our boys were angry and continued to force their way closer to him to punch and slap him, though some of them tried to stop the aggressors. I also told them not to harm him, to leave him alone until the army officers arrived."

Media playback is unsupported on your device Media caption Footage appears to show wreckage from a downed Indian jet

After a dogfight in disputed Kashmir on Wednesday morning, India had initially said that all of its pilots were accounted for, contradicting Pakistani claims that they had captured a pilot. But Pakistan's information ministry then released - and later deleted - a video showing the pilot blindfolded and with blood on his face.

In later footage, Wing Commander Abhinandan could be seen sipping tea. He appeared to have been cleaned up and said Pakistani officers were treating him well.

His capture is being seen as a major setback for India. Correspondents say there is speculation that the pilot could be released soon into Indian custody as diplomatic pressure on Pakistan continues to build.

On Thursday US President Donald Trump became the latest world leader to appeal to the two countries to pursue peace. He said he had "reasonably decent" news from India and Pakistan, sparking hopes that tensions could de-escalate.

Both India and Pakistan have said that they are not looking for war.