Diego Perotti's penalty and a last-gasp strike from Carlos Bacca earned Sevilla a 2-0 victory over 10-man Freiburg in Europa League Group H.