The provincial police commandment in a statement said the incident took place in the early hours of Saturday morning in Malang Dand area of Ahmadabad district.
The statement further added that the militants were busy planting IEDs on a main road when one of the bombs went off prematurely, leaving all four militants dead.
The anti-government armed militant groups frequently use explosives materials for the roadside bombings and car bombings to target the government staff and security personnel.
However, in majority of such incidents the ordinary civilians are targeted besides such bombings incur casualties to the security personnel and in some cases the Taliban militants themselves are killed or wounded.
A total of 10,453 civilian casualties – 3,438 people killed and 7,015 injured – were documented in the 2017 Annual Report released last month by the UN Assistance Mission in Afghanistan (UNAMA) and the UN Human Rights Office.
The report further added that the high number of casualties to the civilians were inflicted by suicide bombings and other attacks using improvised explosive devices (IEDs).