Turkey faced its worst unrest in more than a decade on Sunday night following the arrest of President Erdogan's main election rival.