Slovenia's hopes of qualifying for the World Cup were dashed by a 1-0 defeat in Switzerland on Tuesday night.