Ottawa Senators right wing Bobby Ryan (9) shoots as Boston Bruins goalie Tuukka Rask tries to make a save on a goal during the third period of Game 4 of a first-round NHL hockey playoff series in Boston, Wednesday, April 19, 2017. (AP Photo/Charles Krupa)
Ottawa Senators right wing Bobby Ryan (9) shoots as Boston Bruins goalie Tuukka Rask tries to make a save on a goal during the third period of Game 4 of a first-round NHL hockey playoff series in Boston, Wednesday, April 19, 2017. (AP Photo/Charles Krupa) Credit: Charles Krupa

Boston — Bobby Ryan scored early in the third period, Craig Anderson stopped 22 shots and the Ottawa Senators beat the Boston Bruins, 1-0, on Wednesday night for a 3-1 lead in their first-round playoff series.

It was Anderson’s fourth career playoff shutout.

Tuukka Rask made 26 saves for Boston, which had a goal disallowed in the second period when Ottawa coach Guy Boucher challenged and the replay showed Noel Acciari was offside.

The Bruins, who were winless in four games against the Senators in the regular season, will try to force the series back to Boston with a victory in Ottawa in Game 5 on Friday night.

After back-to-back overtime games, this one remained scoreless until 5:49 into the third, when Erik Karlsson’s slap shot deflected off Rask to his stick side.

Ryan pulled it from his backhand to his forehand and swiped at it as Zdeno Chara dove behind Rask into the crease to try to knock the puck away from the goal line.

The 6-foot-9 defenseman was able to reach out and prevent the first attempt from going in, but Ryan pushed it over the line with his second.

The Bruins pulled Rask with almost 2 minutes left and managed a couple of scoring chances — both from Brad Marchand — but Anderson turned them away.

Notes: Bruins D Colin Miller returned after missing Games 2 and 3 with an unspecified injury. … Ottawa D Mark Borowiecki missed his second straight game. “Boro is getting closer every day,” Boucher said. … Ottawa F Tom Pyatt left after a hit from Kevan Miller early in the first. … Bruins C Patrice Bergeron, a three-time Selke Trophy winner, was named a finalist for the award for the sixth time on Wednesday.

Capitals 5, Maple Leafs 4

Toronto — Tom Wilson and T.J. Oshie each scored two goals, and Washington beat Toronto to tie their first-round playoff series at two games apiece.

Alex Ovechkin added his third goal of the playoffs as the top-seeded Capitals regained momentum with the series shifting back to Washington for Game 5 on Friday night. Braden Holtby made 30 saves.

Zach Hyman, James van Riemsdyk, Auston Matthews and Tyler Bozak scored for Toronto, which was coming off a 4-3 overtime win on Monday night. Frederik Andersen stopped 22 shots.

The Maple Leafs rallied after the Capitals scored four times in the first for a 4-1 lead. Bozak, who had the winning goal in Game 3, got Toronto within one with 26 seconds left, but Washington held on from there.

The tight finish came after a dominant start for the Capitals. Oshie got Washington on the board when he capitalized on a Nate Schmidt point shot sent purposefully wide of the net. Ovechkin then was left wide open for a one-time drive on a power play, making it 2-0 at 4:34 of the first.