The ruling AK Party had complained about irregularities in their shock loss of Turkey’s biggest city.