SAN DIEGO (AP) -- Mitch Moreland doubled in the go-ahead run in the 10th inning to give the surging Texas Rangers a 4-3 victory over the San Diego Padres on Wednesday night.

Moreland's line drive down the right-field line off Bud Norris (1-1) scored Elvis Andrus, who had reached on a one-out single.

The Rangers cut first-place Houston's lead in the AL West to two games. The Astros lost 8-3 to Seattle.

More from FoxSports

Texas, which has won nine of 12 games, retained its one-game lead over Minnesota for the second AL wild-card berth.

Sam Dyson (2-1) pitched two innings as the Rangers (70-62) went a season-high eight games over .500.

San Diego's Craig Kimbrel escaped a one-out, bases-loaded jam in the ninth by striking out pinch-hitter Mike Napoli and Adrian Beltre.

Beltre tied the game at 3-all with a sacrifice fly off reliever Joaquin Benoit in the eighth.

That spoiled a solid outing by Padres starter Ian Kennedy, who tied his career high with 12 strikeouts, including the final five batters he faced.

Kennedy allowed two runs and five hits with two walks in seven innings.

Clint Barmes drove in three runs for San Diego, including a two-run double in the fourth inning off Padres nemesis Cole Hamels. Barmes put the Padres ahead 3-2 in the sixth with a run-scoring groundout.

The Padres have lost seven of 10 games.

Hamels, who is 9-2 against the Padres in 17 career starts, gave up three runs and eight hits over seven innings.

Beltre had an RBI double in the first and Chris Gimenez hit a solo homer for the Rangers.

TRAINER'S ROOM

Padres: 1B Yonder Alonso (sprained lower back) and C Derek Norris (sore left arm) were out of the starting lineup. Alonso aggravated his existing back condition Tuesday night, while Norris' situation was the result of a collision with Beltre at the plate on Tuesday. ... RHP Shawn Kelley (right forearm strain), who left Tuesday's game, is expected to be out for 2 to 3 days.

UP NEXT

Rangers: After a day off, LHP Martin Perez (2-3, 5.16 ERA) will start Friday night in the opener of a three-game set at the Los Angeles Angels. Perez was 2-1 with a 3.13 ERA in five August starts as he lowered his overall ERA from 10.50 to 5.16.

Padres: RHP Colin Rea (2-2, 5.95 ERA) makes his fifth career start in the opener of a four-game series against the visiting Los Angeles Dodgers on Thursday. After winning his first two starts, the rookie has been pounded in his last two starts, giving up eight earned runs in nine innings.