A police officer has allegedly been slashed with a sword while responding to a domestic disturbance in South Australia.