The Sheriff picks up an antique firearm, cocks it and fires; any military veteran or professional law enforcement officer would assume the firearm is loaded and checked it's load prior to dry firing it.
A sheriff is an elected office and is the county law enforcement. The movie implies he was hired by the mayor.