The San Francisco 49ers walked off the Tampa Bay Buccaneers with a game-winning field goal off the foot of Jake Moody, but it wasn’t a great day for special teams. 

In fact, an ugly moment befell the San Francisco sideline when star receiver Deebo Samuel was spotted grabbing the neck of his long snapper teammate, Taybor Pepper.

The moment came after Moody missed his third straight field goal as he and Samuel were having words with each other when Pepper walked into the mix.

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

Deebo Samuel runs with ball

San Francisco 49ers wide receiver Deebo Samuel runs with the ball against the Tampa Bay Buccaneers during the second half at Raymond James Stadium. (Kim Klement Neitzel-Imagn Images)

Samuel then snatched Pepper’s neck, which might have gotten even worse if Moody hadn't held back Pepper from going after their teammate.

After the game, Samuel talked about the situation, contributing his actions to the heat of the moment. 

"Just like frustrated in the heat of battle," Samuel told reporters at his locker following the 23-20 win. "It was a close game, and I kind of got out of character a little bit, but I’ll talk to Moody."

49ERS' RICKY PEARSALL, WHO WAS WOUNDED IN SHOOTING, SCORES 1ST TOUCHDOWN OF HIS CAREER

Samuel added that his reaction to Pepper wasn’t because the latter said something to the former. 

"I wasn’t talking to him," Samuel said. "He just came over."

Pepper was also asked about the moment, saying that Samuel’s words to the special teams unit was to "lock in."

Deebo Samuel awaits snap

San Francisco 49ers wide receiver Deebo Samuel lines up against the Tampa Bay Buccaneers in the third quarter at Raymond James Stadium. (Nathan Ray Seebeck-Imagn Images)

"We know what our job is, and we got us," Pepper added. 

Moody made his return to the 49ers sideline this week after dealing with injury, though he missed just one field goal on 14 attempts earlier this season. 

But his struggles on the road Sunday almost cost his team in the end. The game-winning field goal just snuck in the uprights to make up for it. 

Meanwhile, Samuel caught five of his targets for 62 yards, including a 32-yard catch-and-run from Brock Purdy. 

Deebo Samuel warms up for game

San Francisco 49ers wide receiver Deebo Samuel Sr. warms up before a game against the Tampa Bay Buccaneers at Raymond James Stadium. (Nathan Ray Seebeck-Imagn Images)

CLICK HERE TO GET THE FOX NEWS APP

The 49ers return to the Bay Area next week for a divisional matchup with the Seattle Seahawks.

Follow Fox News Digital’s sports coverage on X and subscribe to the Fox News Sports Huddle newsletter.