Updated

Afghan troops stormed a notorious prison in a hail of gunfire and rocket-propelled grenades Friday, ending a deadly 10-hour standoff that began when four inmates once suspected of belonging to the Al Qaeda (search) terror organization tried to break out.

Explosions rocked the crumbling, overcrowded Pul-e Charkhi jail (search) — which holds Taliban (search) and Al Qaeda suspects as well as common criminals — as troops launched the assault just after nightfall. Soldiers reported the last holdouts in the prison were killed, bringing the day's death toll to four inmates and four guards.

The standoff began in the morning when four inmates — three Pakistanis and an Iraqi — overpowered and killed a guard, then used AK-47 (search) automatic rifle to kill three other guards. Two of the inmates were killed.

The other two remained holed up for 10 hours, taking pot shots at the hundreds of security personnel ringing the jail, keeping them from reaching three wounded soldiers trapped inside the complex.

After a soldier wounded in the assault was carried to an ambulance, another soldier who called himself Zabullah came out, still panting, and told reporters: "We killed them."

After one last burst of gunfire, troops visibly relaxed and went through the pitch-black area with flashlights.

"We searched all the rooms, and it's now under control, so we're leaving," said Amin Jan, an army commander.

About 200 police had taken up positions outside the prison, joined by four German armored personnel carriers from the NATO-run International Security Assistance Force (search) that keeps peace in the capital.

Jail officials used a loudspeaker to warn prisoners to "surrender or die."

The four men who tried to escape had all once been held in a northern jail on suspicion of fighting alongside Al Qaeda and the Taliban, though they were presumably not considered high-level militants as they were all released earlier this year. They were re-arrested in Kabul for unspecified common crimes several months ago.

As the standoff dragged on past nine hours, five truckloads of Afghan soldiers arrived and deployed to the front and back of the prison's thick stone walls. Several soldiers already had taken up positions on the roof.

Pul-e Charkhi, located on the capital's outskirts, is notorious as the scene of summary executions under a series of Afghan regimes, most recently the hardline Taliban. In August, a U.N. human rights expert urged the immediate release of an estimated 725 Taliban fighters taken prisoner in 2001, saying they were living in conditions that violate "every standard of human rights."

Three Americans are serving sentences of eight to 10 years there for torturing Afghans on a freelance hunt for terrorists. Jonathan Idema (search), Brent Bennett (search) and Edward Caraballo (search) are seeking to overturn their convictions in a trial that embarrassed U.S. and NATO forces and sowed confusion about America's role in Afghanistan.

They were being held on a different floor than where the standoff was taking place. Officials have said they were being held in better conditions than local inmates, presumably in a special wing.

The rebellious inmates used razors to attack a guard who was leading them to morning prayers around 7 a.m. (0230 GMT) Friday, taking his AK-47 rifle and then beating and stabbing him to death, said Abdul Salam Bakhshi, the prison's warden.

A gunbattle ensued that killed three other guards and two of the would-be escapees.

Two of the Pakistanis scavenged a second gun and remained holed up with both rifles on the jail's war-damaged second floor, Bakhshi said. Three soldiers wounded in the firefight, one seriously, could not be reached until after the ordeal ended.

Three police officers and two inmates, caught in the crossfire, also were wounded and taken for treatment.

The jail is unrelated to the detention facilities that the U.S. military runs for captured Taliban and Al Qaeda fighters.