No one has yet taken responsibility for the bombing.
Taliban militants attacked on Thursday a district in Afghanistan's Ghazni province near the provincial capital in a pre-dawn raid that left more than a dozen people, including the district's governor dead.
According to Associated Press, the blistering attack in the Khwaja Omari district was the latest insurgent assault in Ghazni province.
However, provincial police chief Mohammad Zaman has confirmed the fighting but rejected the Taliban claim, saying the Taliban attack has been repulsed.
"Five National Directorate of Security operatives, Khwaja Omari district governor and seven police force members were martyred (in the attack)", he added.
Afghan officials often give conflicting casualty figures immediately after an attack. The district governor, Ali Dost Shams, 30, and six of his guards were killed.
Militant groups were responsible - through their attacks or fighting with security forces - for most of the civilian casualties, causing 1,500 deaths or injuries - 67 percent of the total and six percent more than previous year.
At least 25 Taliban terrorists and 18 others, including 15 security force personnel were killed in an attack on a government compound last night.
He said eight government security forces were injured in the fighting.
"Reinforcement troops arrived in the area after half an hour and took control of security in the area and conducted a clearance operation", Interior Ministry spokesman Najib Danish said.