The former leader of the Scottish National Party lost out to Conservative candidate Colin Clark.