Boston’s Nick Ritchie scores a power-play goal against Flyers goaltender Carter Hart in the third period Thursday night at TD Garden. The Bruins scored four goals in the third period and won in a shootout, 5-4. Elise Amendola/Associated Press

BOSTON — Jake DeBrusk scored the lone goal in a shootout and the Boston Bruins won their home opener with a 5-4 victory over the Philadelphia Flyers on Thursday night.

In a wild game, the Flyers (3-1-1) led 2-0 and 3-2, but the Bruins (2-1-1) scored four times in the third period.

DeBrusk flipped a shot over goalie Carter Hart just under the crossbar for the winner.

Tuukka Rask made a glove stop on Claude Giroux to end the shootout.

Brandon Carlo scored Boston’s fourth goal of the third, beating Hart on a shot from the left point with 4:42 left in regulation to give the Bruins their first lead. But the Flyers tied it on James van Riemsdyk’s second goal of the game 1:10 later, as he scored on the power play with a wrister from the right circle.

Rask made a highlight save in overtime, sliding across to rob Kevin Hayes with a right-pad stop.

Philadelphia’s Travis Sanheim had Jakub Voracek’s shot deflect off his right skate from the slot for a go-ahead goal in the third period, just over five minutes after the Bruins rallied with two goals 70 seconds apart early in the period to tie it 2-all.

Nick Ritchie’s power-play goal tied it again with 6:38 left in the third.

Jack Studnicka scored his first NHL goal, slicing it to 2-1 just 57 seconds into the third period. It was Boston’s first 5-on-5 goal of the season.

Charlie Coyle’s turnaround shot from the left circle tied it.

Playing their first game in TD Garden since March 7, the Bruins created an atmosphere – as best they could without fans – of an opener by introducing their coaching staff and players, including those who were sidelined and dressed in suits.

The last time the Bruins played at the Garden, they were rolling with the NHL’s best record. Since then, they lost in the second round of the playoffs to eventual Stanley Cup champion Tampa Bay and saw Zdeno Chara, their 14-year captain, leave via free agency and sign with Washington.

NICE TOUCH

National anthem singer Todd Angilly sang a socially distanced version that was taped outside the home of Stephen A. Cipolla of Somerville, a 42-year season-ticket holder who died recently from complications of COVID-19.

SOUNDS AND SIGHTS

Music blared – as usual – during stoppages, but with the empty black seats as a backdrop, it was the sounds of sticks, pucks banging off the boards, calling for passes and even a few complaints about penalty calls or noncalls that echoed around the arena.

BUSY NIGHT

Hart had 39 saves in regulation and OT, and Rask stopped 22 shots.

Comments are not available on this story.