An Australian election candidate who was widely mocked after mistaking Islam for a country in a TV interview, withdrew her candidacy.