A Swiss politician has been fined for buying water pistols online after authorities said the toys violate the country's weapons law.