According to the local government officials, the incident took place earlier today in Gojar Khel area of Bagram.
The district administrative chief Abdul Shakoor Qudoosi said the suicide bombers were looking to carry out attack and had planted the explosives in a motorcycle when it went off prematurely.
Qudoosi further added that five family members of the suicide bombers were also wounded in the incident.
The anti-government armed militant groups have not commented regarding the incident so far.
This comes as at least 8 suicide bombers were killed in a similar incident in northern Kunduz province of Afghanistan late in the month of April.
Earlier, a group of 10 militants were blown up by their own explosives as they were busy making an Improvised Explosive Device (IED) in southeastern Ghazni province.
According to the security officials, the militants were busy making the IED inside a mosque in Andar district when their explosives went off prematurely, leaving all 10 militants dead.