Israel is seeking peace despite fighting for its life, Prime Minister Benjamin Netanyahu has told the United Nations General Assembly.