NEW YORK — Brett Gardner made a leaping catch at the top of the left-field wall on Justin Smoak’s bases-loaded drive for the final out, and the New York Yankees held on during a nervy ninth inning to beat the AL East-leading Toronto Blue Jays 7-6 on a misty Tuesday night.

A scrambling September game with October implications seesawed to the last swing, and turned at the end in favor of the Yankees. New York won its third in a row and sent Toronto to its fourth loss in five games.

ASTROS 4, INDIANS 3: Corey Kluber lost for the first time since July 3 after Marwin Gonzalez connected for a three-run homer off Cleveland’s ace in the second inning, leading Houston to a win at Cleveland.

Kluber (15-9) had won his previous seven decisions, a span during which he dominated the way he did while winning the Cy Young Award in 2014..

Gonzalez added two doubles for Houston, which is a major league-best 13-4 since Aug. 19.

ORIOLES 11, RAYS 2: Manny Machado capped a six-run fourth inning with a grand slam off Jake Odorizzi, leading Baltimore to a win at St. Petersburg, Florida.

Chris Davis and Adam Jones also homered for the Orioles.

ROYALS 10, TWINS 3: Kendrys Morales had two home runs, including a three-run blast, in visiting Kansas City’s seven-run ninth inning outburst.

WHITE SOX 2, TIGERS 0: Jose Abreu hit his fifth homer in seven games and Miguel Gonzalez came off the disabled list to throw 61/3 innings of six-hit ball as host Chicago cooled off Detroit.

The Tigers went 0 for 8 with runners in scoring position and left nine men on in their fourth loss in 15 games.

NATIONAL LEAGUE

METS 5, REDS 3: Yoenis Cespedes hit the most damaging of New York’s four homers, a two-run shot in the seventh inning, as visiting New York rallied for its 13th straight victory over Cincinnati.

PHILLIES 4, MARLINS 3: Adam Morgan snapped his major league-worst streak of nine consecutive losses as visiting Philadelphia beat reeling Miami.

NATIONALS 9, BRAVES 7: Pinch-runner Michael A. Taylor scored the go-ahead run on catcher Tyler Flowers’ throwing error as part of a three-run eighth inning for a win at Washington.

BREWERS 12, CUBS 5: Jonathan Villar homered to start a five-run first inning against Jason Hammel as Milwaukee won at home.

The NL Central-leading Cubs had won 7 of 8 and were 41 games over .500 after winning Monday’s series opener.

CARDINALS 9, PIRATES 7: Matt Carpenter, Randal Grichuk and Jhonny Peralta all homered off closer Tony Watson with two outs in the ninth inning, helping St. Louis to rally at Pittsburgh.

GIANTS 3, ROCKIES 2: Eduardo Nunez had two RBI for San Francisco in a win at Denver.