Charlie McAvoy and Riley Nash scored first-period goals, Tuukaa Rask made 19 saves to snap his four-game losing streak and the Boston Bruins hung on for a 3-2 victory over the Tampa Bay Lightning on Wednesday night.

Torey Krug also scored and Brad Marchand assisted on the first two goals for the Bruins, who opened a 3-0 lead to post their fifth win in six games. Boston improved to 13-3 in its last 16 at home against the Lightning.

Steven Stamkos and Andrej Sustr scored for the Lightning, and Andrei Vasilevskiy made 33 saves. Tampa Bay, which entered the game with the NHL's best record, lost for the third time in four games following a season-high five-game winning streak.

Criticized lately for his uneven play combined with recent solid performances by backup Anton Khudobin, Rask raised his record to just 4-8-2 this season. Khudobin is 7-0-2.

Rask flashed his pad to block Ryan Callahan's tip from in close late in the game.

The Bruins came out strong in the opening period, firing 19 shots on goal en route to a 2-0 lead after one.

McAvoy snapped off a shot from the right circle that slipped through a crowd of players and past Vasilevskiy to make it 1-0 at 7:27. Originally, it was waved off for goaltender interference with Boston's Patrice Bergeron and Brad Marchand at the edge of the crease, but Bruins coach Bruce Cassidy challenged the call and it was overturned.

Nash fired a wrister that sailed over Vasilevskiy's left shoulder with 2:47 left.

Vasilevskiy faced nearly as many shots in the first as he did the entire game a night earlier when he stopped 24 in his sixth career shutout, a 2-0 victory at Buffalo.

Ryan Spooner set up Krug's goal that made it 3-0 early in the second. After the Bruins kept the puck in Tampa Bay's zone for a lengthy stretch, Spooner backhanded a pass that Krug one-timed inside the right post.

Sustr snapped a shot from the right point that sailed into the net past a group of players and by Rask's glove midway into the second. Stamkos one-timed Nikita Kucherov's pass for a power-play goal in the third after Brandon Carlo was whistled for interference 46 seconds into the period.

NOTES: The Bruins equaled their most shots on goal in a period this season in the first. They matched their second period at the Los Angeles Kings on Nov. 16. ... Boston F David Backes returned to the lineup after missing nearly a month following surgery to remove part of his colon. Marchand also returned after missing six games with an undisclosed injury, but C David Krejci was out with an undisclosed upper body injury. ... Tampa Bay has scored a power-play goal in five straight games. ... A male fan seated about 10 rows back at center ice was hit in the head with a puck in the opening period and walked from his seat to seek medical attention with his hand over his forehead.

UP NEXT

Lightning: Host the Sharks on Saturday in the opener of a four-game homestand.

Bruins: At the Flyers on Saturday in the first of two straight road games.