MIAMI GARDENS, Fla. - Tom Brady's latest comeback bid came up short, and the Miami Dolphins (8-6) helped their playoff chances with a 24-20 breakthrough victory on Sunday over the AFC East-leading New England Patriots (10-4).

A fourth-down pass from Brady was intercepted in the end zone with two seconds left by reserve safety Michael Thomas, who was playing his first NFL game, and Miami held on.

The Patriots had mounted second-half rallies to win their last three, and Brady moved them from their own 20 with 1 minute, 15 seconds remaining to the Miami 14. But he threw three consecutive incompletions before Thomas sealed the third consecutive victory for the Dolphins, who improved to 5-2 since tackle Jonathan Martin left the team in a bullying scandal.

Miami snapped a streak of seven consecutive losses against the Patriots. Ryan Tannehill threw for 312 yards and three touchdown passes, including a 14-yarder to Marcus Thigpen with 1:15 left that provided the winning margin.

Brady went 34 for 55 for 364 yards and two scores. Julian Edelman made 13 catches for 139 yards, and Danny Amendola added 10 receptions for 131 yards.

Dolphins 24, Patriots 20

New England 3 7 0 10 - 20

Miami 0 7 3 14 - 24

First quarter

NE-FG Gostkowski 22, 3:53.

Second quarter

NE-Hoomanawanui 13 pass from Brady (Gostkowski kick), 1:38.

Mia-Wallace 39 pass from Tannehill (Sturgis kick), :32.

Third quarter

Mia-FG Sturgis 32, 7:31.

Fourth quarter

Mia-Dan.Thomas 2 pass from Tannehill (Sturgis kick), 14:54.

NE-FG Gostkowski 23, 7:45.

NE-Edelman 24 pass from Brady (Gostkowski kick), 4:07.

Mia-Thigpen 14 pass from Tannehill (Sturgis kick), 1:15.

A: 71,863.

NE   Mia

First downs 29   20

Total Net Yards 453   378

Rushes-yards 22-96   23-89

Passing 357   289

Punt Returns 0-0   2-9

Kickoff Returns 1-19   2-25

Interceptions Ret. 0-0   1-0

Comp-Att-Int 34-55-1   25-37-0

Sacked-Yards Lost 1-7   4-23

Punts 3-48.7   4-47.3

Fumbles-Lost 0-0   2-1

Penalties-Yards 1-2   4-21

Time of Possession 31:21   28:39

INDIVIDUAL STATISTICS

Rushing: New England, Blount 11-47, Ridley 8-34, Vereen 2-13, Develin 1-2. Miami, Miller 15-61, Dan.Thomas 5-16, Wallace 1-13, Fields 1-0, Tannehill 1-(minus 1).

Passing: New England, Brady 34-55-1-364. Miami, Tannehill 25-37-0-312.

Receiving: New England, Edelman 13-139, Amendola 10-131, Boyce 4-42, Vereen 3-8, Collie 2-25, Hoomanawanui 1-13, Blount 1-6. Miami, Wallace 6-105, Hartline 5-70, Matthews 5-64, Egnew 2-25, Thigpen 2-23, Mar.Moore 1-11, Clay 1-6, Sims 1-6, Dan.Thomas 1-2, Miller 1-0.

Missed Field Goals: New England, Gostkowski 48 (WL).