FC Dinamo Brest advanced to the third qualifying round of the UEFA Champions League after edging FK Sarajevo 2-1.