BOSTON — It looked as though the Boston Bruins were going to snap their three-game losing streak Tuesday night at TD Garden, but that all changed after an ugly third period.

After exploding for four goals in the last 10 minutes of the second period, the Bruins allowed the Florida Panthers to come all the way back and tie the game with four unanswered third-period goals, pushing this one to overtime and ultimately a shootout where Florida would prevail.

Tuukka Rask pushed away 25 of the 29 shots he faced for the B’s. Sergei Bobrovsky’s rough second period landed him on the bench for the third. He stopped 19 of 23 shots before Sam Montembeault stopped all 15 third-period and overtime shots for the Panthers.

With the loss, the Bruins fell to 11-3-4, while the Panthers moved to 9-4-5.

Here’s how it all went down:

SLOW START

The Bruins didn’t come out of the gates flying, to put it politely. Boston recorded just three shots on net over the game’s first 11 minutes, but lucky for the hosts, Florida wasn’t any better.

The Panthers put just two shots on goal in the opening 12 minutes, resulting in a purely neutral zone matchup for the majority of the first period. Florida’s defensive pairings did their part to keep those tallies low, however, blocking seven shots in the initial nine minutes.

Charlie McAvoy took the first penalty of the night with 13 seconds remaining in the first, forcing the Bruins to begin the second frame on the kill.

Boston outshot Florida 7-5 in the game’s first 20 minutes, but neither team found the back of the net.

SECOND PERIOD EXPLOSION

The Bruins were able to kill off the remaining 1:47 of McAvoy’s penalty, but they’d end up shorthanded once again just minutes later when Patrice Bergeron was called for holding. Boston didn’t have any issues killing off the minor.

David Pastrnak got the Bruins on the board with his NHL-leading 16th goal of the year on a 2-on-1 rush created by a nice effort on the backcheck by Bergeron. But it was Pastrnak’s absurd no-look wrist shot that’ll get the headlines on this one. The right winger was looking toward Brad Marchand when he fired on net, ripping one past Bobrovsky.

This only was the start.

Just over two minutes later, Joakim Nordstrom floated in from the right-wing circle and sniped one past Bobrovsky, making it 2-0 in the blink of an eye.

Anders Bjork then decided to join the party roughly three minutes later on the power play, beating Bobrovsky from the right-wing circle with a snapshot that the Panthers goaltender probably will want to have back.

Within a span of 5:25, the Bruins potted three goals on seven shots, blowing this one open.

But just when it felt like the period was over, Zdeno Chara cashed in for a goal of his own with 28 seconds left, pouncing on a David Krejci rebound to make it 4-0.