BOSTON – Tim Thomas had faced shot after Washington shot — 25 already in the third period — when Alex Ovechkin came in on the Boston goalie and tried to sweep a backhand through his legs.

“(The attack) was consistent, consistent, consistent. I didn’t have time to think right until Ovechkin’s pad shot,” Thomas said after stopping the two-time NHL MVP at point-blank range with 11 seconds left to preserve Boston’s 3-2 victory over the Capitals on Saturday night. “Maybe that was good.”

Andrew Ference scored his first goal in 100 games as the Bruins jumped to a 3-0, first-period lead and then held on to send the Capitals to their eighth straight loss. Washington outshot Boston 26-2 in the third period, but Thomas made 39 saves in all to help the Bruins snap a three-game losing streak.

“It certainly saved us. There’s no doubt about that,” Bruins Coach Claude Julien said. “It’s unfortunate. … We were watching more than we were reacting.”

Patrice Bergeron and Blake Wheeler scored for Boston, and they also assisted on each others’ goals. But the Capitals cut the deficit to one goal and then peppered Thomas with shots in the final period and nearly tied it on Ovechkin’s shot in the final minute, with Washington goalie Michal Neuvirth off for an extra skater.

“You outshoot a team 26-2 in the third period and you hopefully come through with more than a loss,” Capitals Coach Bruce Boudreau said. “I really believed we were going to tie it tonight. You could feel it. Thomas has beat an awful lot of teams with great stuff, and he did it to us.”

The Bruins had lost three in a row — all one-goal games — for their longest losing streak of the season. But they scored before Washington got its first shot, taking a 1-0 lead 3:27 into the game when Wheeler went toward the net and took the defenders with him, then spun backward and dished it back to Bergeron.

Ference made it 2-0 with 11:47 left in the first with a slap shot from the left point that was partially screened. It was his first goal since Feb. 22, 2009. Boston made it 3-0 when Bergeron backhanded the puck to Wheeler in the circle for a goal with 2:57 left in the first.