Israel says its troops were searching for wanted militants , and shot the three men as they tried to flee .