Gudjonsson, unmarked inside the six-yard box, seemed certain to score as the impressive Thompson headed the ball back across goal towards him but the midfielder's hooked shot lacked power and struck Montgomery, who was facing the other way and knew nothing about it.
Barry's shot was struck with power, but it was a crucial deflection off Duff that took it out of the reach of Harper and into the bottom corner of the net.
The Ducks went ahead midway through the first period when Bonino scored 3 seconds into a power play, tipping Cam Fowler's point shot past Howard for his first career playoff goal.