The mayor's detention highlights an increasingly aggressive campaign that Turkey's president is waging against critics to silence dissent.