Israel's Netanyahu says he ordered the military to cordon off a major city in the occupied West Bank after an attack by Palestinian gunmen that wounded Israeli troops.