A 6-year-old boy named Haider fell into a well in the village of Shokak. He was successfully pulled out Friday afternoon after ongoing efforts to rescue him, according to a BBC report.

Rescuers continued to talk to the boy as they attempted to pull him out. However, in the last 24 hours before he was pulled out the child stopped communicating.

The rescue team had dug a trench into the ground to reach him and planned to fly him to a hospital via a helicopter to receive urgent medical attention.

“In the first minutes after the rescue operation was completed, he was breathing, and the medical team gave him oxygen,” Zabul police spokesperson Zabiullah Jawhar told AFP. “When the medical team tried to carry him to the helicopter, he lost his life.”

On Tuesday the child slipped to the bottom of the narrow 80-foot shaft, where he was able to move around.

Initial rescue attempts had made the situation worse as the boy was hoisted up by a rope but got stuck along the way. This prevented the rescue team from getting food and water to him.

Haider was left stuck in this position for more than 30 hours before rescuers were able to reach him.

Earlier this month, Newsweek reported on a similar story out of Morocco where a 5-year-old boy had died after being trapped in a well for four days.

Rescue workers extracted 5-year-old Rayan from a well that was 105 feet deep. Reports said the boy had fallen in on Tuesday, February 1 and was confirmed dead by the Saturday. Morocco’s royal palace released a statement confirming his death.

Rescuers had worked carefully for days to extract Rayan from the well and faced the concern of potentially triggering a landslide with their efforts.

Officials had attached a cell phone to a rope and lowered it down to monitor Rayan and his surroundings and allow them to communicate with him throughout the rescue process.

Abdelhadi Temrani, head of the rescue effort, said it was too soon to know the condition of Rayan before his body had been recovered. He said that he hoped the child was still alive.

Rescue workers operated bulldozers to dig parallel to the well for days to try and save the boy. During the rescue effort, workers had to be cautious of the ground collapsing. By Saturday, February 5 they were able to reach his body and bring it to an ambulance.

Update 2/18/22, 8:41 a.m. ET: This article was updated with additional information.