Turkish riot police used tear gas and forced their way into the Ankara headquarters of the main opposition CHP party after a court dismissed its leadership, as supporters blocked entrances in defiance of the ruling.