Swedish Prime Minister Stefan Lofven lost a no-confidence vote in parliament on Tuesday and will step down after four years in power, but with neither major political bloc holding a majority it remained unclear who will form the next government.