During the search a gun battle erupted in which several suspected militants died .