The Taliban stormed a government compound in central Afghanistan early this morning, triggering a lengthy gunbattle which killed 15, including three top local officials, before they drove Afghan forces out.
The attack in the Khuja Omari district was the latest insurgent assault in Ghazni province, which is now largely under Taliban control.
The Taliban planted mines to prevent government reinforcements from going to help and quickly took responsibility for the attack.
The insurgent group's spokesman, Zabihullah Mujahid, told the Associated Press that after the attack in Khuja Omari - not far from the provincial capital also called Ghazni - all security posts in the district were under Taliban control. The district centre, however, is still in government hands.
The province of Ghazni is located south of Kabul province, the seat of the country's capital, Kabul, and lies along a key route.
Travel by road between the capital and southern Kandahar province, a traditional Taliban heartland, is considered dangerous because of large swathes that are now under insurgent control.
Mujahid gave a higher casualty figure among the Afghan forces, which the Taliban often do, exaggerating their achievements on the battlefield, and a significantly lower death toll among the insurgent attackers.
A politician in the Afghan parliament, Mohammad Arif Rahmani, said the district governor, intelligence service director and a deputy police official were among those killed in Thursday's attack.
He said the attack began around 2am local time with the Taliban storming the highly secure compound in Khuja Omari district.
Ramazan Ali Moseni, a deputy police chief in Ghazni province, said seven police officers and five members of the country's intelligence agency known by the acronym NDS were also killed in the attack.
He added that 45 Taliban were killed and eight members of the Afghan security forces were wounded.
The casualty figures are impossible to independently verify because of the remoteness of the area.