They found a tunnel. So they moved past it and waited for the terrorists to come out of it. They ambushed Hamas and killed every one of them.
Easy solution. When you find a tunnel, just fill it with mustard gas. Problem solved!