A person who offers an insult to a public official during the legal discharge of his duties or publicly offers an insult with respect to the legal discharged of such duties shall be sentenced to imprisonment for not more than six months, short-term imprisonment, or a fine of not more than three thousand dollars.