Officials said the soldiers had been given shoot-on-sight orders to curb the violence.