OAKLAND, Calif. — Derek Carr threw a 2-yard touchdown pass to Michael Crabtree on the final play after the game was extended by two straight defensive holding calls and the Oakland Raiders snapped a four-game losing streak with a 31-30 victory over the Kansas City Chiefs on Thursday night.

With their season on the line following the recent slump, Carr led an 85-yard touchdown drive in the final 2:25 to give the Raiders (3-4) the thrilling comeback win in a game they trailed by nine points heading into the fourth quarter.

Carr finished 29 for 52 for 417 yards and three touchdowns, with Amari Cooper catching 11 passes for 210 yards and two of the scores.

Alex Smith threw for 342 yards and three touchdowns but it wasn’t enough for the Chiefs (5-2). They lost consecutive games for the first time since Oct. 11-18, 2015, and had their 12-game winning streak in the AFC West snapped in a thrilling finish.

The Raiders had an apparent go-ahead touchdown pass to Jared Cook with 18 seconds left overturned when replay ruled he was down at the 1. An offensive pass interference on Michael Crabtree wiped another touchdown on the next play.

But holding calls on Ron Parker and Eric Murray set the stage for the final play. Carr hit Crabtree in the front corner of the end zone to tie it at 30. Giorgio Tavecchio won it with the extra point, setting off a celebration on a wild night.

Oakland Raiders running back Marshawn Lynch was ejected after shoving an official when he ran onto the field during a scuffle.

It all started when Oakland quarterback Derek Carr was hit late on a run by Kansas City’s Marcus Peters midway through the second quarter. Raiders offensive linemen Kelechi Osemele and Donald Penn immediately confronted Peters.

Lynch, who is close friends with his fellow Oakland native Peters, then sprinted onto the field from the bench to join the fray. Line judge Julian Mapp tried to break up the fight but Lynch pushed him and grabbed his jersey.

Peters was called for a personal foul for the late hit. Lynch got a personal foul and was ejected for making contact with the official.

Lynch finished the game with two carries for 9 yards.

Lynch came out of retirement this season and was traded from Seattle to the Raiders. Lynch said he wanted to make a comeback so he could give something back to his hometown of Oakland before the Raiders move to Las Vegas in 2020.

Lynch has rushed for 266 yards and two touchdowns in seven games.

NOTES

VIKINGS: After nearly 14 months of arduous rehabilitation for his left knee, Teddy Bridgewater has arrived at the final stage.

For all the progress he’s made, appearing in a game for the Minnesota Vikings again will be no small step to take.

“I definitely believe I’ll play this year but I can’t just sit here and say it,” Bridgewater said.

“I have to continue to put the work in on the practice field and show the training staff or the higher authority that eventually I can get back to the player that I was.”

Bridgewater spoke to reporters Thursday for the first time since the beginning of training camp and only the second time since he crumpled to the grass during a non-contact drill at practice Aug. 30, 2016.

He was cleared to rejoin the team Wednesday, another significant milestone in his recovery from the knee dislocation and multiple ligament tears that would end the career of many players.

“If that doesn’t inspire you, I don’t know what will,” wide receiver Stefon Diggs said.

The 24-year-old quarterback said his knee was feeling fine after completion of his first practice, though he hasn’t taken any hits.

“It’s baby steps,” offensive coordinator Pat Shurmur said. “A little bit at a time. We try to amp it up a little bit each day as we go.”

Bridgewater will be brought along slowly, realizing his return to the field this week did not signify an automatic assumption of the starting job.

“We have to be smart with everything,” Bridgewater said.

PACKERS: The family of Bart Starr said the Hall of Fame quarterback will attend Green Bay’s game Sunday against the New Orleans Saints at Lambeau Field.

The 83-year Starr has not attended a Packers game since Thanksgiving 2015, when he took part in the unveiling of Brett Favre’s retired No. 4.

Starr has been recovering from two strokes and a heart attack he suffered in 2014. But USA Today Network-Wisconsin reports Starr’s family determined he was well enough to make the trip to Green Bay.

BUCCANEERS: Jameis Winston said his injured right shoulder is “getting better every single day,” however the Tampa Bay quarterback still isn’t throwing in practice.

The Buccaneers decided against the third-year pro testing his arm Thursday, saying Winston instead will work with the first-team offense Friday.

“We made a decision to hold him another day from throwing. He did everything else,” Coach Dirk Koetter said. “I fully expect that Jameis takes all the snaps (Friday).”

Asked if that’s an indication Winston could be on track to start Sunday’s game at Buffalo, Koetter smiled.

“You guys will get an injury report,” the coach said, “and you can draw your own conclusion.”

Winston has a sprained AC joint in his throwing shoulder.

WASHINGTON: Rookie defensive lineman and first-round pick Jonathan Allen was put on injured reserve Thursday after he underwent surgery to repair a Lisfranc sprain in his left foot.

Coach Jay Gruden said that there’s “absolutely” a chance Allen can return this season despite the usually long time frame to get back from this kind of operation.

PANTHERS: Linebacker Luke Kuechly missed his third straight day of practice Thursday with a concussion while wide receiver Kelvin Benjamin missed a second consecutive day of practice with inflammation in his left knee.

Quarterback Cam Newton has declined to speak to reporters for the second straight day.

Panthers spokesman Steven Drummond said Thursday the former league MVP gave no explanation as to why he wouldn’t participate in his weekly news conference prior to Sunday’s game against the Chicago Bears.

JAGUARS: Jacksonville running back Leonard Fournette said his ankle feels good and he “most definitely” will be healthy enough to play Sunday at Indianapolis.

Fournette missed a second consecutive practice Thursday because of a sprained right ankle. The rookie expects to do “cutting and stuff” Friday before Coach Doug Marrone decides his status against the Colts.