At least four Taliban insurgents were also killed and another militant was wounded during the operation, the provincial government said. He could not say how many other casualties there were besides the assailants.
Afghan special forces have freed more than 100 prisoners held by the Taliban, including women and children, in an operation in the southern province of Helmand, the military says. This led to a skirmish, and one of the attackers used an explosive vest in the attack.
Later Wednesday, the American commander of US and coalition forces in Afghanistan cast doubt the attack was the work of IS, saying instead there are indications the Taliban-allied Haqqani network was behind it.
"We broke their dream so that they will never try to attack military installations particularly the minister of interior", Danish said. His spokesman, Lt. Col. Martin O'Donnell, said earlier that more than 50 were killed but that an exact count has not yet been established.
"It was 5 in the morning when the Taliban exploded a vehicle bomb near the First District Police Headquarters and three suicide attackers entered the building", Mr. Ahmadzai said. He said all coalition troops had been accounted for after the attack.
A police official and two policemen were killed in a suicide bombing in central Logar province on Wednesday morning, local officials confirmed. A suicide auto bomb was set off at the gates before three gunmen in suicide vests stormed the compound.
Halsey SLAMS Ivanka Trump For Posting Controversial Twitter Photo
"I know what you're going through right now with families is very tough but those are the bad laws that the Democrats gave us". Under the "zero-tolerance" policy, a parent who illegally crosses the border with a child would be separated from the child.
"The attackers had long hair and started shooting at police force members", said Mohammad Salim, a police soldier. The Taliban have threatened to attack voter registration centers.
It appeared to be a rare victory for Afghan security forces, who have struggled to secure the capital in recent months.
Image copyright EPA Image caption Cleaning up in Kabul - the capital keeps getting hit by attacks Who are the Taliban?
Police also said they had found a vehicle stuffed with explosives and guns at Kabul's global airport near the interior ministry on Wednesday.
Under surveillance by the Marines, the Taliban fighters returned to their Helmand stronghold, a center for poppy cultivation.
Elsewhere in Afghanistan, the Taliban attacked a district headquarters in the northern Takhar province, killing five security forces, according to provincial police spokesman Khalil Asir.