Demonstrators clashed with security officials, in rare violent backlashes against police.