John Lackey delivers a pitch in Tuesday's 6-2 Angels victory over the Red Sox. ((Jim Rogash/Getty Images))

John Lackey nearly hurled a no-hitter as the Los Angeles Angels beat the Boston Red Sox 6-2 at Fenway Park on Tuesday night.

Dustin Pedroia singled to left field with one out in the bottom of the ninth inning to spoil the no-hit bid.

"I just got the barrel on it," he said. "He [Lackey] was awesome.

"He put on a show. We hit some balls hard, but right at guys."

Kevin Youkilis followed with a two-run home run that broke up the shutout.

Lackey (9-2) struck out four batters and walked two in pitching his second complete game of the season.

"A no-hitter would have been nice," he said. "You know what is going on, but it was not affecting me.

"I just wanted to win the game."

Garret Anderson walloped a two-run home run off Boston starter Clay Buchholz in the top of the fourth inning for the Angels (66-40), who have the best record in the major leagues.

Los Angeles entered the contest with an 11½ game lead in the American League West Division and, earlier Tuesday, announced the acquisition of slugger Mark

Teixeira from the Atlanta Braves for fellow first baseman Casey Kotchman and minor-league pitching prospect Steve Marek.

Buchholz (2-6) lasted 6 1/3 innings, permitting six runs — one unearned — on six hits and three walks with five strikeouts.

It was a costly loss for the Red Sox (61-47), who fell two games behind the front-running Tampa Bay Rays in the American League East.

Tampa Bay beat the Toronto Blue Jays 3-0.

Lackey is the second American League pitcher this season to lose a no-hit bid in the ninth inning.

On May 6, Gavin Floyd of the Chicago White Sox was two outs away from recording a no-hitter versus the Minnesota Twins, when Joe Mauer hit a double to centre field.

The White Sox won 7-1.

With files from Associated Press