Rescuers were desperately scrambling on February 17 to reach a nine-year-old boy trapped for two days down a well in a remote southern Afghan village.

The operation in Shokak village, Zabul province, comes less than two weeks after a similar attempt to rescue a child from a Moroccan well gripped the world – but ended with the boy found dead.

Video shared on social media – including by officials of Afghanistan’s new Taliban government – showed a boy named as Haidar wedged in the well, able to move his arms and upper body.

“Are you okay my son?” his father can be heard saying.

“Talk with me and don’t cry, we are working to get you out.”

“Okay, I’ll keep talking,” the boy replies in a plaintive voice.

The video was obtained by rescuers lowering a camera down the narrow well by rope.

Local officials said the boy appeared trapped about 10m down the 25m shaft.

“A team is there with an ambulance, oxygen and other necessary things,” tweeted Abdullah Azzam, secretary to Deputy Prime Minister Abdulghani Baradar.

Rescuers were digging an open slit trench from an angle at the surface to try to reach the point where the boy is trapped.

It appeared similar engineering to what rescuers attempted in Morocco early this month, when a boy fell down a 32m well, but was found dead five days later.

The ordeal of “little Rayan” gained global attention and sparked an outpouring of sympathy online, with the Arabic Twitter hashtag #SaveRayan trending.

The boy’s father said he had been repairing the well when the boy fell in, close to the family home in the village of Ighrane in the Rif mountains.

“Little angel, you fought until the end, a hero”, said one Twitter user called Anouar.