A police officer is using pepper spray on a group of people in a courtroom.