Australia’s director-general of security said a spy team from an unidentified country had cultivated and recruited a former Australian politician.