OAKLAND, Calif. (AP) Derek Carr threw a go-ahead 21-yard touchdown pass to Michael Crabtree on a fourth-and-2 gamble and added another TD pass to Amari Cooper to lead the Oakland Raiders to a 34-31 victory over the mistake-prone San Diego Chargers.

San Diego (1-4) committed four turnovers and then botched the hold on a potential tying field goal. Rookie Drew Kaser couldn't hold the snap on what would have been a 36-yard field goal attempt.

The Raiders (4-1) took over with 2 minutes left and ran out most of the clock to get a third straight win for the first time in five years and hand San Diego its 10th straight division loss.

Oakland took the lead on a bold call late in the third quarter. Facing a fourth-and-2 at the 21 late in the third quarter trailing by five, coach Jack Del Rio once again trusted his offense to make a big play and it paid off.

Carr found Crabtree deep down the left side for the touchdown that put the Raiders up 25-24. A 2-point conversion pass to Cooper gave Oakland a three-point lead and Jamize Olawale added a 1-yard run that made it 34-24 on a drive set up by Kaser's 16-yard punt.

Carr threw for 317 yards, including a 64-yard pass earlier in the third quarter that gave Cooper his first touchdown of the season. Cooper had six catches for a career-high 138 yards.

Philip Rivers threw for 365 yards and four scores for the Chargers, who were once again done in by their own mistakes. San Diego has three losses already this season in games it led at the two-minute warning.

BIG PLAY ROOKIE: First-round pick Karl Joseph, who started the season on the bench in Oakland, has made a big impact since becoming a starter in Week 3. He intercepted a pass from Rivers late in the first half to set up a field goal and then recovered a fumble to Melvin Gordon to set up Crabtree's TD.

BOSA'S DEBUT: Chargers defensive end Joey Bosa made an impressive debut after missing training camp during a nasty contract dispute and sitting out the first four games with a hamstring injury. He came in on the second drive and had a sack and a tackle for loss. He added a second sack in the fourth quarter.

FAIL TO CONVERT: The Raiders twice had first-and-goal in the first half and had to settle for short field goals. On both drives, Carr appeared to have a touchdown — except Cooper couldn't get both feet inbounds on catches near the sideline. Sebastian Janikowski attempted two other field goals in the first half, missing from 50 yards and connecting from 56 on the final play of the half to make it 10-9.

GIVE IT AWAY: After committing turnovers on the final three drives in last week's loss to New Orleans , the Chargers picked up where they left off. Antonio Gates was stripped on San Diego's first drive and lost a fumble with the Chargers in position to score. Rivers then was intercepted by Sean Smith on a deep pass on the Chargers next play from scrimmage. Rivers threw another interception late in the half, giving San Diego six turnovers in eight possessions. San Diego committed a fourth turnover late in the third quarter when Gordon fumbled, setting up Oakland's go-ahead score.

More From 1460 ESPN