TORONTO -- The Tampa Bay Rays picked a bad time for their worst defensive performance of the season.
"One of those games," Rays manager Joe Maddon said. "We've been on a pretty good run. Go get a good night's sleep and come back tomorrow."
Tampa Bay wasted a 2-0 lead and committed a season-high three errors, including a pair by two-time Gold Glove third baseman Evan Longoria.
"I had an uncharacteristically sloppy game," Longoria said. "Unfortunately, they came back to bite us today."
Tampa Bay dropped into a tie with Cleveland for the two AL wild cards, one game ahead of Texas. The Rays' magic number for clinching remained at two over Texas.
"We really still are in the driver's seat," Longoria said. "It's not like we're playing catch-up at this point."
Dickey (14-13) allowed two runs and five hits in 7 1/3 innings, retiring 13 of 14 during one stretch. The 38-year-old knuckleballer, acquired from the New York Mets during the offseason after he won the NL Cy Young Award, struggled earlier this season but finished strongly, going 5-1 with a 3.17 ERA in his last seven starts.
"He had a good year," Blue Jays manager John Gibbons said. "It was his 14th win, and for a team below .500, you'll take that."
Tampa Bay, which had won seven of its previous nine against Toronto, went ahead on home runs by Ben Zobrist in the first and Delmon Young in the second, his second in two games and the 100th of his career. Dickey allowed 35 homers, one behind the major league-high total of Oakland's A.J. Griffin (36).
Dickey recovered from the shaky opening and allowed just one hit after the third.
"He was able to kind of settle in and get into the rhythm of the game," Longoria said. "He just shut us down offensively after that."
Hellickson retired nine in a row before Jose Reyes singled to open the fourth. After a sacrifice, Brett Lawrie reached on Longoria's fielding error, and Moises Sierra and Anthony Gose followed with RBI singles.
Ryan Goins grounded a go-ahead single up the middle, and center fielder Sam Fuld overran the ball, which went all the way to the wall. Anthony Gose scored on the error for a 4-2 lead, and Goins was thrown out at the plate on Zobrist's relay from shortstop.
"I think I just took my eye off it just a second too early," Fuld said. "You can't really imagine a worse scenario as an outfielder."
Hellickson (12-10) allowed six runs -- three earned -- and six hits in 4 2/3 innings. He was disappointed he didn't overcome his teammates' defensive miscues.
"The guys have been picking me up all year, offensively and defensively," Hellickson said. "It would have been nice to pick them up for once."
Lawrie and Sierra chased Hellickson with run-scoring singles in the fifth.
"That was our opportunity right there," Maddon said.
Lawrie's lip was cut in the seventh when a Roberto Hernandez pitch grazed his shoulder and bounced off his cheek. Bleeding from his mouth as he walked to first base, Lawrie was checked by a trainer but remained in the game. He was replaced by Mark DeRosa in the ninth.
"He was bleeding from his lip and from inside his mouth so we took him out for precautionary reasons," Gibbons said. "He's a tough dude."
Tampa Bay's previous three-error game was Sept. 18, 2012 against Boston. ... Toronto's Adam Lind (back) missed his second straight game. ... Rays SS Yunel Escobar (left ankle) is expected to return to the starting lineup Saturday.