The Czech president has been attacked by a man with a plastic gun who fired pellets at him from just a metre away.
Pavel Ondrous, who was wearing military camouflage, approached the country's leader Vaclav Klaus during a ceremony to open a bridge, television footage showed.
Mr Klaus was hit in the arm but was unhurt and was quoted as saying to his bodyguards: "You really did not manage this well".
The gunman opened fire with a handgun that fires plastic pellets used in a game called airsoft, similar to paintball, Nova TV said.
Ondrous told a reporter the government was "blind and deaf to the laments of the people".
He was arrested and handed over the fake gun to police.
Mr Klaus, 71, whose second and final term ends next March, is a popular figure in the central European EU country.
But is criticism of the euro, EU integration and efforts to halt global warming as well as his friendly stance towards Russia have won him some enemies.