Follow CBSMIAMI.COM: Facebook | Twitter

MILWAUKEE (AP) — Khris Middleton hit a 3-pointer at the buzzer as the Milwaukee Bucks snapped a six-game losing streak with an 89-88 comeback victory over Miami on Tuesday night in a key game for the sixth spot in the Eastern Conference playoff race.

READ MORE: CBS4 Exclusive: Survivor Has New Outlook On Life After COVID Attacked His Lungs

Ersan Ilyasova made the first of two free throws to pull Milwaukee within 88-86 with 12.8 seconds left. On the battle for the rebound, the Bucks’ Jerryd Bayless tied up Michael Beasley and won the jump ball.

READ MORE: 'They Don't Know The Truth': Ex-School Resource Officer Scot Peterson Defends Actions During Parkland School Shooting

Bayless missed on a drive down the lane, but Zaza Pachulia tapped the ball back out to Middleton, who buried the winner.

It was a crucial victory for the Bucks, who improved to 35-36 to remain in sixth place in the conference, while the Heat fell to 32-38. The Bucks also swept the four-game season series with the Heat to ensure the tie-breaker between the teams.

MORE NEWS: Research Shows Significant Disparities For Black Women In Breast Cancer Detection & Treatment

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)