That might be the best solution, but another good one is to get most of the militants into an Israeli-free, fenced-in area that is backed up to the sea.
Then the next time Pali rockets are launched into Israel, all hell can break loose and Pali-mutt butt can be thouroughly kicked.
"thouroughly" = thoroughly. Sheesh!