Netanyahu and his chief rival both fell short of a parliamentary majority, leaving Israel’s next government unclear.