Except as provided in § 22-14-24, any person who knowingly possesses or causes to be present any firearm or other dangerous weapon, in any county courthouse or in the state capitol, or attempts to do so, is guilty of a Class 1 misdemeanor.
SDCL 22-14-23