Incumbent Zoran Milanović, a combative critic of NATO and the EU, finished well ahead of the ruling party candidate but just short of a majority.