(d) A person who commits or attempts to commit a terroristic threat or act with the intent to retaliate against any person for: (1) Attending a judicial or administrative proceeding as a witness, attorney, judge, or party or producing any record, document, or other object in a judicial or official proceeding; or (2) Providing to a law enforcement officer, adult or juvenile probation officer, prose