DETROIT — Zach Trotman’s first career NHL goal couldn’t have come at a better time for the surging Boston Bruins.

He scored with 2:08 remaining Thursday night to lift the Bruins to a 3-2 victory against the Detroit Red Wings.

Trotman’s wrist shot got between Petr Mrazek’s glove and jersey, and trickled past the goal line to give Boston its fourth straight win.

“I was just trying to shoot it on his pad and get a rebound, and it went in,” said Trotman, who was recalled March 22 from Providence of the AHL. “I was ecstatic. It was surreal. I didn’t believe it at first.”

Carl Soderberg and Loui Eriksson also scored and Tuukka Rask made 35 saves for Boston, now in eighth place in the race for a playoff spot. The top three teams in each division make the playoffs, with the top two point totals in the conference getting the other two berths.

Luke Glendening and Stephen Weiss had goals, and Mrazek made 22 saves for Detroit, which fell into a third-place tie with the Bruins in the Atlantic Division after its third straight loss.

Boston, which won the season series 3-1-1, will have the tiebreaker if the teams stay even.

The Bruins have four games remaining in the regular season.

Mrazek rued the winning goal.

“I would love to have the last one back,” Mrazek said. “I thought I had it and it just went through. There was a huge two points on the line and we didn’t get any.”

Drew Miller of Detroit started 48 hours after needing more than 50 stitches to close a pair of deep cuts near his left eye. He was injured when he collided with Mark Stone’s skate during Tuesday night’s shootout loss to Ottawa.

Miller, who normally wears a visor, sported a full-face shield.

Glendening opened the scoring midway through the second when he flicked a rebound over Rask’s right shoulder. Weiss made it 2-0 with a power-play goal 2:52 into the third.

The Bruins answered quickly. Soderberg had a power-play goal of his own 5:05 into the period when he knocked home Reilly Smith’s rebound. Another rebound off a shot by Smith led to Eriksson’s tying goal less than two minutes later.

“I thought after they scored that second goal, something clicked and we started playing with great urgency,” Bruins Coach Claude Julien said.

His penalty killers also played a big role. Detroit had the man advantage five times but got only Weiss’ goal among seven shots.

Boston got a bit of help shortly before Trotman’s winner: Darren Helm broke his stick seconds before the go-ahead goal and left Detroit a man short.

The Red Wings were hoping for a better April after earning just 12 of a possible 30 points in March, but Coach Mike Babcock didn’t appear upset.

“We did a lot of good things and in the end Rask kept us from winning the game,” he said. “There’s not a whole lot of moral victories at this time of the year but I thought it was good.”

NOTES: Detroit center Pavel Datsyuk missed his third straight game with a lower-body injury. Fellow forwards Erik Cole and Tomas Jurco were scratched with upper-body injuries. … Boston defensemen Kevan Miller (shoulder) and Dougie Hamilton (undisclosed) didn’t play.

Only subscribers are eligible to post comments. Please subscribe or to participate in the conversation. Here’s why.

Use the form below to reset your password. When you've submitted your account email, we will send an email with a reset code.