Updated

HOUSTON (AP) — Carlos Lee hit his first homer of the season, a two-run shot in the ninth inning that propelled Houston over the Arizona Diamondbacks 4-2 Wednesday night and ended the Astros' eight-game losing streak.

Kaz Matsui drew a leadoff walk before Lee sent a long drive to left field off Juan Gutierrez (0-4).

Lee had averaged nearly 30 homers and over 100 RBIs in his first three years with Houston. This home run came in his 100th at-bat of the season — the three-time All-Star slugger began the day hitting just .198.

Astros closer Matt Lindstrom (1-0) gave up back-to-back singles with one out in the ninth, but got out of the jam when Kelly Johnson grounded into a double play.

Starters Rodrigo Lopez and Brett Myers each gave up two runs in seven innings.

Lopez yielded a season-low three hits and struck out four before Aaron Heilman took over for the eighth.

Tommy Manzella's first career home run — a two-run shot to left field — put Houston ahead 2-1 in the second. It broke a streak of five straight games without a home run for the Astros and gave them double the runs they'd managed in the previous two games combined.

Lopez retired 13 of the next 14 batters after the homer. He walked Lance Berkman in the seventh inning before Hunter Pence grounded into a double play.

Myers got some help from center fielder Michael Bourn in the seventh inning. Bourn sprinted almost to the wall in right-center field to snag a fly ball hit by Johnson for the first out.

Bourn then slipped and fell as he was chasing a fly ball by Stephen Drew, but managed to stretch his glove out just enough to catch that one, too. Myers gave up six hits and struck out six before Brandon Lyon pitched a perfect eighth inning.

Arizona took the lead in the second when Gerardo Parra hit a run-scoring triple that hit just above Lee's head on the wall in left field.

Parra added an RBI double in the fourth that made it 2-all.

NOTES: Houston's Kevin Cash started at catcher on Wednesday after having his contract purchased from Triple-A Round Rock a night earlier. ... About 20 people gathered outside Minute Maid Park before the game to protest Arizona's new immigration law on the Cinco de Mayo holiday.