Phoenix, AZ (SportsNetwork.com) - Khris Middleton's prayer was answered, and the Suns were handed another heartbreaking loss.

Middleton banked in a 3-pointer as time expired to give the Milwaukee Bucks a 96-94 win in Phoenix on Monday.

Zaza Pachulia gave the Bucks an 88-87 lead with 2:42 remaining with a layup, then both teams went scoreless until the final minute.

Gerald Green put the Suns back in front with a corner 3-pointer with 41.9 seconds left, and former Sun Jared Dudley restored Milwaukee's lead with a triple at the other end.

Out of a timeout, Markieff Morris got free for a layup, and again the Bucks stole the lead back at the other end, this time with a Brandon Knight runner.

Phoenix then took a timeout to advance the ball. It was inbounded to P.J. Tucker on the low block, and he found Morris near the free throw line for a jumper that gave Phoenix the lead back with 3.9 seconds to play.

Milwaukee burned two timeouts before the final possession. Middleton came to the ball near the left sideline and let fly with a contested, off-balance trey that hit the backboard and every part of the rim before falling through.

"It wasn't pretty, but the guys kept fighting," said Bucks coach Jason Kidd. "We found a way to win."

Brandon Knight scored 20 points to lead Milwaukee, which overcame the loss of star rookie Jabari Parker to a knee injury to rally to a win.

Parker injured his left knee on a drive to the basket early in the third quarter. The No. 2 pick was helped off the court by teammates and was diagnosed with a sprain.

"As of right now, we don't know anything," Kidd said. "They'll do all the tests (Tuesday) and we'll be able to report something then."

Phoenix lost its sixth straight game in eerily similar fashion to its game against the Clippers on Dec. 8. Blake Griffin's game-winning 3 in that one bounced off the front of the rim before sneaking into the basket.

"Some years, the breaks aren't going your way. Obviously, so far this year, they haven't," Suns head coach Jeff Hornacek said. "We've got to make our own breaks."

Morris had 25 points and Isaiah Thomas gave 20 off the bench.

O.J. Mayo opened the fourth quarter with a 3-pointer and Giannis Antetokounmpo split a pair of free throws to get the Bucks within a point. The next three minutes belonged to Thomas.

Thomas' triple at 9:41 started a stretch of 11 of the next 13 points in the game scored by the diminutive guard. He followed his 3 with a layup, then canned two more contested shots from behind the arc out of a timeout to make it 83-73 in Phoenix's favor.

Milwaukee scored the next nine points, however, to make it a game.

Morris scored 10 points in the first quarter to help the Suns to a 26-14 lead. They held a 53-44 advantage at halftime and 72-67 lead through three.

Game Notes

The Bucks had lost three straight road games ... The Suns fell to 1-6 this season on the second game of a back-to-back ... Middleton and Pachulia both shot 6-for-9 and scored 14 and 13 points, respectively, off the bench ... Green shot 3-for-18, including 2-for-15 from 3-point range, in the loss.