Israel is to build an underwater fence on its coastal border with Gaza in an effort to keep out terrorists.