Authorities in Slovakia have charged a man with the attempted murder of the country's prime minister, alleging the suspect acted alone in a politically motivated attack.