The victims of the Sunday attack, the second targeting of the employees of the judicial office in a week, included civilians and civil servants, said Interior Ministry spokesman, Sediq Sediqqi.
He added that the attack, which was carried out by a "bomber on foot," occurred during the afternoon rush hour, when employees were boarding the bus to return home.
Nearly a week ago, an identical attack on the judiciary staff left one dead .
The Taliban militants have claimed responsibility for both bombings.
The United States and its allies invaded Afghanistan in 2001 as part of Washington’s so-called war on terror. The offensive removed Taliban from power, but insecurity still remains across the country.
The US-led combat mission in Afghanistan ended on December 31, 2014. However, at least 13,500 foreign forces, mainly from the United States, have remained in the country in what Washington calls a support mission.