Police fired tear gas and water cannon in the capital Ankara to disperse more than 2,000 people, mainly students from the Middle East Technical University.