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