It is a defense to a prosecution under AS 11.56.705 or 11.56.710 that the conduct of the defendant
(1) conformed to accepted veterinary practice; or
(2) was in response to a direct attack on the defendant by a police dog not acting under the control of a peace officer.