Eight Afghan security guards from Bagram Airbase were killed when their vehicle was attacked by unknown gunmen late Monday night, a local official said.
Two others were wounded, Bagram district governor Abdul Shokoor Qudosi, told dpa.
The incident took place on the main road near Shah Kah village, approximately one kilometre from the airbase, Qudosi added.
The group of 10 security guards was on its way to work at the time of the shooting, according to the governor.
So far no group has claimed for responsibility for the attack.
Bagram Airbase in central Parwan province, is the largest US military base in Afghanistan and is a regular target of attacks.
In November 2016, a suicide bomb blast inside the base left two US service members and two contractors dead and 16 others wounded.