GHAZNI - Taliban insurgents in military uniform stormed an Afghan prison Monday, freeing hundreds of inmates after detonating a car bomb and killing four policemen in the country’s largest jailbreak in years.

The brazen raid in the eastern city of Ghazni comes as the Taliban ramp up attacks on government and foreign targets despite being embroiled in a bitter leadership transition.

It was the Taliban’s third mass prison break since 2008 and a major blow to Afghan forces facing their first fighting season without full NATO support.

“Around 2:30 am six Taliban insurgents wearing military uniforms attacked Ghazni prison. First they detonated a car bomb in front of the gate, fired an RPG (rocket-propelled grenade) and then raided the prison,” deputy provincial governor Mohammad Ali Ahmadi told AFP. The interior ministry said 355 of the prison’s 436 inmates escaped. Most were Taliban and other militants.

It added that four Afghan police officers were killed and seven wounded in the raid, which left bullet-riddled bodies near the entrance of the prison.

Ahmadi said the raid came hours after inmates protested at government moves to shift up to 20 Taliban prisoners to Kabul - a possible indication that the jailbreak was coordinated.

He added that daggers and knives carved out of furniture pieces were found on some of the inmates.

The Taliban, who launched a countrywide summer offensive in late April, claimed responsibility for the raid.

“This successful operation was carried out at 2:00 am and continued for several hours. The jail was under Taliban control,” spokesman Zabihullah Mujahid said in a statement. “In this operation, 400 of our innocent countrymen were freed... and were taken to mujahideen-controlled areas,” it added.

The Taliban are known to exaggerate and distort their public statements. In the last major Afghan jailbreak in 2011 nearly 500 Taliban inmates escaped from a prison in the southern province of Kandahar.

The Taliban at the time said they sprang the inmates through a one-kilometre tunnel that took five months to dig. The government described that incident as a security “disaster”. And in 2008 about 1,000 prisoners including hundreds of Taliban rebels escaped when suicide bombers blew open the gates of Kandahar city’s main prison.

Taliban insurgents are stepping up their summer offensive despite a simmering leadership succession dispute after the confirmation of the death of longtime chief Mullah Omar.

Mullah Akhtar Mansour, a trusted deputy of Omar, was named as the insurgents’ new chief in late July but the power transition has been acrimonious.

Afghan security forces, stretched on multiple fronts, are struggling to rein in the Taliban as NATO forces pull back from the frontlines.

NATO ended its combat mission last December and pulled out the bulk of its troops although a 13,000-strong residual force remains for training and counter-terrorism operations.

In other bloodshed this month unidentified attackers on September 5 shot dead 13 minority Shiite Hazaras after dragging them out of their vehicles in the northern province of Balkh.

The men were taken from two vehicles in a rare fatal attack targeting ethnic minorities. Afghanistan’s president the same day implored international donors for their continued support, saying the “wounded country” faced a host of security and economic challenges.

Donors have pledged billions of dollars over the past decade to reconstruct the war-torn nation. But much of that money has been lost to corruption which permeates nearly every public institution, hobbling development and sapping already overstretched state coffers.