He is seeking to position himself as an outsider who was not part of the prime minister’s unpopular government.