Taliban gunmen clashed with security forces following a car-bomb blast at a government compound in Afghanistan's northern province of Samangan on Monday, officials said, and more than 63 people were wounded.
The attack took place at a government facility in Samangan's capital, Aybak, close to an office of the National Security Directorate, the main intelligence agency, officials said.
The attack took place in the Samangan provincial capital of Aybak. Raz Mohamamd Khan, a provincial council member, said the nine dead included a woman. He said there were 63 wounded but warned those were only initial figures and that the casualty toll could rise further.
At least two Taliban attackers were killed in the shootout, Khan added.
Earlier, a provincial hospital chief, Abdul Khalil Musadiq, said at least 43 wounded "mostly civilians, including children" were taken to hospitals in the area.
The province's health director, Khalil Musadeq, said 43 civilians and members of the security forces had been wounded in the attack, with that number expected to rise and deaths expected.
The attack comes at a sensitive time as violence in Afghanistan ramps up even as the United States tries to usher the government and the Taliban towards peace talks to end more than 18 years of war.