Updated

Taliban fighters tried to overrun a provincial capital in Afghanistan early on Friday, hiding inside homes before slipping into city streets during the night to attack security forces and killing at least 14 policemen before being pushed back, officials said.

The overnight attack in the southeastern city of Ghazni, the capital of a province with the same name, also wounded at least 20 members of the security forces, said Baz Mohammad Hemat, the administrator of the Ghazni city hospital.

Another Taliban attack, this one on Thursday night in western Herat province, left six policemen dead in the district of Obe, according to the governor's spokesman, Gelani Farhad.

In Ghazni, the attack began around 2 a.m. with intense gunbattles raging and fires burning in several shops in the city's residential areas, provincial police chief Farid Ahmad Mashal told The Associated Press.

After repulsing the daring assault, police conducted house-to-house searches for any remaining Taliban fighters. An investigation as also underway on how the insurgents had managed to infiltrate so deep into the city, barely 120 kilometers (75 miles) south of the Afghan capital of Kabul.

Hemat, the hospital administrator, said two wounded civilians were also brought to the hospital but that the city was shut down and that ambulances were not being sent out.

Mashal said there were more than 100 other casualties but he could not give a breakdown of the dead and wounded. Most of the casualties were Taliban, he said.

Several bodies of dead Taliban fighters remained on the street after government forced pushed the insurgents from Ghazni, the police chief said. Bodies of 39 Taliban fighters were recovered from beneath a bridge in the southern edge of the city.

Airstrikes called in to quash the offensive also killed dozens of Taliban, Mashal said. Defense Ministry spokesman Mohammad Radmanish said the army had helped the police and that the city was brought under control of government forces.

Taliban spokesman Zabihullah Mujahid claimed parts of Ghazni had been seized and scores of people killed.

After dawn Friday, Ghazni's residents were staying indoors and all shops in the city remained closed. The road from Kabul to Afghanistan's southern provinces was also closed because it runs through Ghazni.

The Taliban have so far not confirmed being behind the earlier attack in Herat in which at least six policemen were killed at a district checkpoint.