A significant ally of US president Donald Trump, the conservative was killed with a single shot as he spoke at a university.