ANAHEIM, Calif. (AP) -- L.J. Hoes made a daring dash to second base on a ball he hit down the right field line in the ninth inning and thought he made it before shortstop Erick Aybar's tag.
At least that was the impression he got from umpire Eric Cooper, who called him safe.
Aybar and Los Angeles Angels manager Mike Scioscia argued the call -- and suddenly Cooper was huddling with the rest of his crew.
Moments later, Hoes was ruled out, leading to a lengthy and animated argument between Cooper and Astros manager Bo Porter.
The Astros ended up losing 6-5 on Josh Hamilton's one-out homer in the 10th against Josh Fields.
"At first, I didn't think he tagged me. But I watched the replay and it looked like he might have swiped my jersey," Hoes said. "I'm just surprised at situation and the timing of what was going on out there. I'm definitely surprised that they overturned it. It would have been huge to lead off the ninth inning with a double."
Porter was more adamant about his displeasure over the ruling.
"I've never seen anything like that -- where the umpire is actually in position to make a call, makes the call and then agrees to get help on the call that he's in position to make," Porter said.
"He said he may not have seen it as clearly as he wanted to see it. It was a big play because it would have given us a man on second with nobody out and an opportunity to do some situational hitting to get him in. But that was not the case, and you all saw the outcome."
Angels closer Ernesto Frieri (1-4) then struck out four of his next five batters and got credit for the victory when Hamilton sent an 0-2 pitch from Fields (1-3) to right-center for his 18th homer.
It was the fifth career walkoff homer for the 2010 AL MVP and made him the third player in franchise history to do it twice in a season along with Bobby Abreu and teammate Mark Trumbo.
"He went curve ball on the first pitch, then came with a heater in," Hamilton said. "Then I'm sure he tried to throw a curve ball in the dirt and just left it up and right down the middle.
"When I hit it, I wasn't quite sure if I got it because it wasn't absolutely flush. But when I was running and saw him look up, it was a good feeling. Moments like that make it a little easier to come back every day. It would be nice to do it all the time."
Brett Wallace homered and drove in three runs for the Astros, helping them build a 5-4 lead. Philip Humber relieved Houston starter Dallas Keuchel in the fifth and pitched 2 2-3 innings, giving up the tying run in the seventh on Aybar's two-out RBI single after Mike Trout walked and stole second.
Trumbo homered and drove in three runs for the Angels. Right-hander Garrett Richards gave up five runs and a career-high 12 hits through six-plus innings in his 21st big league start, striking out seven and walking none. He was coming off his first complete game in the majors, a 2-1 loss at Yankee Stadium last Monday.
Keuchel gave up four runs and eight hits in four-plus innings. The 25-year-old left-hander, who threw a career-high 116 pitches over 8 2-3 innings last Sunday in a 6-1 loss to Texas, was removed by Porter with a 5-4 lead after walking the first two batters in the fifth.
The Astros pulled ahead 5-4 with three runs in the top half. Wallace tied it with his 10th homer, sending Richards' 2-2 pitch into the left-field bullpen after a single by Robbie Grossman. Jose Altuve followed with a single and scored on a two-out double by designated hitter Chris Carter, who had a career-high five RBIs, including a three-run homer, in Friday's series-opening 8-2 win.
Trumbo, the only Angels player to appear in every game this season before Scioscia gave him Friday off, returned to the lineup with his .236 average and hit his 27th homer into the center-field trees leading off the second.
One inning later, the Angels' cleanup hitter followed two-out singles by Collin Cowgill and Trout with an opposite-field triple to right, giving Trumbo 78 RBIs and tying Trout for the club lead. Aybar capped the rally with an RBI double that extended the margin to 4-2.