The Dolphins had a goal-line stand of its own in the fourth quarter and holding the Bills to a field goal after Buffalo had a first down at the 1 kept the Dolphins within seven points.
The Dolphins got the ball once after that and went three-and-out before Buffalo killed the last seven minutes of the fourth quarter by coming up with four first downs.
The Dolphins once again were victimized by a defensive touchdown, as linebacker Takeo Spikes scored on an 11-yard return after he picked off an atrocious Fiedler screen pass intended for fullback Rob Konrad.
Behind the running of Sammy Morris, who finished with almost 100 yards, the Dolphins took control of the game in the second quarter and got a 47-yard Matt Bryant field goal before the Thompson touchdown.
But Buffalo took the second-half kickoff and marched to a game-tying field goal before Matt Turk's 24-yard punt into the wind gave Buffalo the ball at the Miami 37-yard line.
Two plays after Drew Bledsoe connected with Eric Moulds on a 30-yard pass, he threw a 5-yard touchdown pass to tight end Dan Campbell for a 17-10 Buffalo lead.
The Dolphins blew a golden opportunity to tie the game on their next possession after getting a first-and-goal at the 1.
On first down, Brock Forsey was stuffed for a 1-yard loss. On second down, Fiedler tripped over the foot of guard Taylor Whitley while dropping back to pass and he was touched down for a 5-yard loss. On third down, Fiedler was given decent pass protection but couldn't find anybody and he eventually was sacked.
The defense, which has been so good all season, broke down a little in the second half, with Buffalo scored on three of its four possessions and running out the clock on the other.