BERLIN – Three parties in the eastern German state of Thuringia joined forces on Thursday to keep the election-winning Alternative for Germany out of power, electing as state premier a conservative who led his party to second place behind the far-right AfD.