Kevin Love scored 28 points and grabbed 11 rebounds for Minnesota, which got 24 from Chase Budinger, 15 from Gorgui Dieng and 13 apiece from JJ Barea and Ricky Rubio, who also had 14 assists. Referee Ken Mauer called the last foul on Miami's Norris Cole, saying he hit Brewer on a pass into the paint.
Ray Allen missed a wild jumper as time expired for Miami, which blew a chance to move two games clear of Indiana in the loss column atop the Eastern Conference standings.
But Brewer got the call on the next Minnesota possession, and his free throw was the difference.
Washington 90, at New York 89: Bradley Beal made the go-ahead jump shot with 22 seconds left and scored 28 points.
at Toronto 102, Indiana 94: Terrence Ross scored 24 points to lead the short-handed Raptors.
Phoenix 109, at Portland 93: Reserve forward Gerald Green scored 18 of his 32 points in the second half and the Suns rallied for a victory.
Philadelphia 111, at Boston 102: Michael Carter-Williams scored eight of his 24 points in the fourth quarter.
at Brooklyn 116, Detroit 104: Shaun Livingston scored 23 points and Mirza Teletovic made six three-pointers and added 20 points.
at Atlanta 117, Cleveland 98: Mike Scott ended a scoring slump with 26 points.