Sweden international Gustaf Nilsson has scored an added-time penalty to help Club Brugge defeat Atalanta in their Champions League playoff first leg.