Polling stations closed in Israel on Tuesday for a pivotal general election that opinion polls suggest will be a tight race.