Retired general Petr Pavel was elected president of the Czech Republic, according to preliminary results on Saturday.