Party official confirms former prime minister has been shot at a rally but is not in danger.