KABUL, Afghanistan — Taliban insurgents overran a government headquarters in southeastern Afghanistan on Thursday, killing a district governor and the chief of security as well as at least nine others, officials said.

Mohammad Arif Noori, a spokesman for the governor of Ghazni Province, said that Taliban insurgents attacked the government compound of Khwaja Umari district, killing the district governor, Ali Dost Shams, 30, and the district chief of the National Directorate for Security, Ahmad Ziya.

Mr. Noori said the attackers used heavy weapons and destroyed the district government building, killing five police officers and four N.D.S. officers, as well as the officials; ten other officers were injured. They also attacked the police headquarters but were repulsed. In retaliation, he said, the Afghan air force bombed Taliban positions, killing 30 of the insurgents.

The district is the basic unit of local governance in Afghanistan, which has about 400 districts nationwide. The National Directorate of Security is the Afghan intelligence agency, and its local head is one of the top security officials at the district level.