Technically, it wasn't a shot by virtue of missing everything, but the ricochet off the boards went right to Ovechkin, who flipped it high past Henrik Lundqvist.
Adel Taarabt beat visiting keeper David Marshall, but saw his shot hit the post from 25 yards and Cardiff were relieved to see the ball ricochet for a goal-kick.