TEL AVIV—Israeli Prime Minister Benjamin Netanyahu promised that no Palestinian state would be established as long as he remains in office, an election-eve reversal aimed at pulling the embattled leader up from behind in a tight race.