If a person does something that, apart from this section, would be a Commonwealth offence or an offence under a law of a State or Territory, the person is not criminally responsible for the offence if:
(a) the person is a Commonwealth officer; and
(b) the thing is done in the course of the person's duty; and
(c) the chief officer who granted the authority has authorised the doing of the thing; and
(d) if an authorised person had done the thing in accordance with an authority, the authorised person would not have been criminally responsible for the offence because of the application of section 15KQ.