The Scottish Nationalist leader has seen h er party lose seats, including that of the SNP leader in Westminster.