A military spokesman says the militants were killed while fleeing the site of a roadside bombing that wounded five soldiers .