Officials say a firefight erupted after militants set off a bomb near a police vehicle , wounding four officers .