The following is a rough summary of how understand the military service in Switzerland. I only got my Swiss citizenship when I was sure that I wouldn't have to do military service, so I'm basically uninformed. Switzerland has a "militia" army. That is to say, it has very few professional soldiers but all men must and all woman may undergo military training. If you're a man and don't want to, there's an alternative civil service. When I was a kid, the alternative was a prison sentence. If you do service with a gun, you can take it home and keep it. When I was a kid, everybody did this. When you're too old for service, you can give the gun back. When I was a kid, nobody did this. If your job at the military includes guns, you have mandatory yearly shooting tests while you're in the right age bracket.
"Mandatory shooting is passed when the shooter gets at least 42 points with the assault rifle or 120 points with the pistol and had at most 3 zeros. Between these shots, any number of test shots may be fired (at cost). When failing to get the minimum number of points after two further attempts (at cost), shooters must attend an extra shooting course." (my translation of the German Wikipedia page)
https://de.wikipedia.org/wiki/Schiesswesen_ausser_Dienst#Schiesspflicht
The corresponding link to the army page: https://www.armee.ch/de/militaerdienst-schiesswesen
For the points, see the diagram here: https://schiesstechnik.ch/wp-content/uploads/2019/03/Das-Obligatorische-erfuellen.pdf
You get 20 shots at 300m with the assault rifle can can make up to 85 points. Each shot is worth 1 to 5 points, if you hit. You may only have three misses.
All of this to say that many Swiss have opinions about people trying to shoot presidential candidates…