Rookie Derek Carr gave the Oakland Raiders something to celebrate for a change.

Carr threw a 9-yard touchdown pass to James Jones with 1:42 remaining, and the Raiders snapped a 16-game losing streak with a 24-20 victory over the Kansas City Chiefs on Thursday night.

"I been through a lot of hard times, these losses have been hard," Carr said.

Oakland's Latavius Murray ran for two touchdowns on four carries before leaving the game with a concussion.

The Raiders (1-10) built a 14-point lead, but needed a 17-play, 80-yard drive led by Carr to secure its first win since beating Houston on Nov. 17, 2013.

Alex Smith threw two TD passes for the Chiefs (7-4), who had won five in a row. They fell a half-game behind Denver in the AFC West.

The Raiders became just the third team since the merger to beat a first-place team for their first win after losing at least 10 games to start the season. Indianapolis did it against Green Bay in 1997 and Buffalo did it to Dallas in 1984.

The Chiefs will have a long time to stew over this loss before hosting Denver on Nov. 30 in an AFC West showdown.

It took an impressive drive by the rookie Carr to win it. He twice had to sneak for first downs. He also threw an 8-yard pass to Mychal Rivera on third-and-6 and capitalized on a pass interference penalty against Ron Parker on another third down before finding Jones for the go-ahead score.

"That was really hard-fought, they are a great team obviously, they will probably go to the playoffs and do some great things," Carr said. "I can't wait to see my teammates' smiles."

The game wasn't sealed until Smith threw an incomplete pass on fourth-and-13 from his 48. Even that didn't come without a tense moment. Khalil Mack and Sio Moore sacked Smith on third down and celebrated in the backfield while the Chiefs ran up to the line. An angry Justin Tuck had to call timeout as he seethed at his younger teammates.

The Chiefs battled back from a 17-3 deficit late in the third quarter to take the lead with three scores in less than 8 minutes, including a pair of touchdown passes from Smith.

The first came on a looping throw to Anthony Fasano for a 19-yard score with 1:52 remaining in the third quarter.

The Raiders managed to move the ball near midfield before stalling on their next drive, and the Chiefs answered with a four-play, 65-yard drive that was made even more difficult by a pair of holding penalties.

Jamaal Charles beat Charles Woodson out of the backfield to catch a short pass and weaved through Oakland's defense for a 30-yard score that tied it at 17. It was Charles' fifth touchdown catch in his past two games at the Oakland Coliseum.

Frankie Hammond's 28-yard punt return set up Cairo Santos' second field goal of the game, giving the Chiefs their first lead of the night.

The Raiders started fast behind the little-used Murray, who had just 10 carries in the first 10 games. He spelled starter Darren McFadden on the second drive and provided an immediate spark for Oakland's struggling offense before leaving the game with a concussion.

Murray carried twice on his first drive, sprinting 11 yards around the end for Oakland's first rushing touchdown since Oct. 19 against Arizona. The Chiefs were looking to match the 2011 San Francisco 49ers by becoming the second team ever to allow no rushing touchdowns through 11 games.

Murray did even better the next time he touched the ball, sprinting past the Chiefs defense for the longest run by a Raiders running back since Bo Jackson had a 92-yarder against Cincinnati in 1989. Quarterback Terrelle Pryor had a 93-yard TD run last season against Pittsburgh.

Murray had 112 yards on four carries before getting hurt. He had the most yards rushing by any player since at least 1960 with five or fewer carries.

___

Online:

AP NFL website: www.pro32.ap.org and www.twitter.com/AP_NFL