The Israeli military said the firefight broke out when soldiers surrounded a house where the militants were holed up .