Avigdor Lieberman, the Israeli foreign minister and an important Netanyahu coalition partner, resigned ahead of elections.