Police used tear gas and pepper spray to disperse protesters in Istanbul after Mayor Ekrem Imamoglu’s detention.