It is a defense to a prosecution under subsection (a) that the defendant was a law enforcement or investigative officer engaged in the course of his official duties and the electronic surveillance was authorized by and conducted pursuant to a search warrant or court order of a court of competent jurisdiction.
An offense described in this section is punishable by a fine of not more than $10,000 or imprisonment for not more than five years, or both.