Officers shot the suspect after he allegedly attacked police who were responding to a restraining order violation.