A stoppage-time Lazar Samardzic penalty gave Atalanta a 4-1 victory over Borussia Dortmund, winning 4-3 on aggregate.