Assault or other violent acts committed against an official acting in the execution of a state duty or public service, because of his state activity or service, are punishable by a fine or up to three years of imprisonment.