The violence could carry risks for Prime Minister Najib Razak if it is seen as unjustified, possibly forcing him to delay elections.