The attack in Maidan Wardak province followed recent shootings by militants targeting Afghan security forces.
Among the four perpetrators, one was killed in the explosion and the other three were shot dead. Most of the victims were security personnel. The Taliban claimed responsibility for the bombing.