With the game tied, Stephon Marbury was short on a jumper as time was running out, but the officials called a loose-ball foul on Bucks center Andrew Bogut. After reviewing video of the play, the officials found the foul for holding off Frye came with time remaining.
"My reason for going over to the replay was to determine that the foul that was blown during the game, to make sure there was time on the clock when the foul occurred," official Ken Mauer said.
The Bucks couldn't get a shot off and lost their season-high seventh straight.
"Usually whistles aren't blown in loose-ball situations that close," Milwaukee coach Terry Stotts said. "I didn't see the play. I didn't see if he fouled him. I was surprised. I think we're all surprised the whistle blew."
Nearly two hours after the Knicks' bizarre ending, the Grizzlies clung to a 102-101 lead over Portland when Damon Stoudamire was fouled with 0.8 seconds left. He made the first free throw, but missed the second on purpose.
Ime Udoka grabbed the rebound and appeared to stumble, but Lawrence Roberts was called for the foul.
Time expired in the game but the officials huddled, put the 0.8 back on the clock and sent Udoka to the free-throw line. He made his first shot, but the second bounced off.
This time, the game really was over.
"It was unbelievable," Pau Gasol said. "I couldn't believe that foul (call) was made. We had the win and they made the call. It was devastating. I'm happy he missed the free throw because we deserved the W."
In other NBA games, it was: Los Angeles Lakers 122, Boston 96; New Jersey 109, Sacramento 96; Phoenix 116, Minnesota 104; Chicago 105, Washington 90; Utah 114, Denver 104; Detroit 94, Orlando 89; Charlotte 102, Philadelphia 87; Toronto 110, Indiana 88; New Orleans 98, Seattle 97; and Atlanta 105, Houston 99.
Lakers 122, Celtics 96
At Los Angeles, Kobe Bryant had 38 points and nine assists to help Los Angeles end a six-game losing streak that had been the longest of Phil Jackson's coaching career.
Reserve forward Gerald Green scored 21 points for the Celtics. Boston has lost 28 of 31 and 11 straight on the road, two shy of the club record set in 1978-79, when the team dropped its final 13 games of the season under Dave Cowens.
Bryant came within two points of his fourth consecutive 40-point game against the Celtics.
Paul Pierce played in his fifth game after missing 24 games because of a stress reaction in his left foot, scoring 15 points and sitting out the fourth quarter.
Nets 109, Kings 96
At East Rutherford, N.J., Jason Kidd got his 84th career triple-double and the Nets ended a three-game losing streak with a win over the Kings.
Kidd had 22 points, 13 rebounds and 10 assists despite playing with a cracked rib that the Nets revealed Thursday.
Vince Carter led the Nets with 26 points, and also had 11 rebounds.
Suns 116, Timberwolves 104
At Minneapolis, Shawn Marion scored 27 points, Leandro Barbosa added 24 and Amare Stoudemire had 23 for Phoenix.
Steve Nash added nine points and 15 assists in his third game back after missing four starts with a right shoulder inflammation.
Kevin Garnett, who had a season-high 44 points the last time the teams met, led Minnesota with 28 points and tied a season high with 19 rebounds.
Bulls 105, Wizards 90
At Chicago, Luol Deng tied a career high with 32 points and Kirk Hinrich added 20 to help the Bulls win their third straight since the All-Star break.
Gilbert Arenas scored 36 points for the Wizards and had 18 straight Washington points durin one second-half stretch.
Jazz 114, Nuggets 104
At Denver, Deron Williams and Carlos Boozer returned to Utah's lineup and helped the Jazz rout the Nuggets.
The Jazz, seeking their first division title since 2000, beat the Nuggets for the sixth straight time and increased their lead over second-place Denver to 9 1/2 games.
Williams scored 26 points and had out 14 assists, and Boozer had 10 points. The Jazz's top assist man, Williams strained his left groin in the Rookie-Sophomore Challenge game All-Star weekend and missed one game.
Pistons 94, Magic 89
At Orlando, Fla., Chauncey Billups scored 28 points and Richard Hamilton added 22 for Detroit.
It was the second time in three nights Detroit beat Orlando after a 110-88 victory on Wednesday. This time Orlando had a chance, but the Magic didn't score a field goal for the first 10:30 of the final period, squandering a 71-67 lead.
Dwight Howard had 20 points and 13 rebounds for the Magic.
Bobcats 102, 76ers 87
At Charlotte, N.C., Adam Morrison, Matt Carroll and Gerald Wallace each scored 19 points and the Bobcats _ minus their sick coach _ tied a team record with their fourth straight win.
The third-year Bobcats, who won four in a row to end last season, were never threatened by the 76ers despite coach Bernie Bickerstaff leaving the bench late in the first quarter with flulike symptoms.
Emeka Okafor added 16 points and 16 rebounds for the Bobcats.
Kyle Korver scored 10 of his 21 points in the fourth quarter for the 76ers.
Raptors 110, Pacers 88
At Toronto, Chris Bosh had 23 points and 12 rebounds for the Raptors.
Jorge Garbajosa added 16 points for Toronto, which has won nine of its last 10 at home.
Jamaal Tinsley had 19 points for the Pacers, who fell a half-game behind Toronto in the East.
Hornets 98, SuperSonics 97
At New Orleans, David West had 23 points and 11 rebounds to help the Hornets move into the eighth spot in the Western Conference.
Tyson Chandler added 15 points and 19 rebounds for New Orleans (27-29), which moved ahead of idle Golden State (26-29) by a half-game for the last playoff spot in the West.
Allen finished with 32 points for the Sonics, whose recent winning streak ended at three games.
Hawks 105, Rockets 99
At Atlanta, Joe Johnson scored 31 points and the Hawks overcame a 37-point effort by Tracy McGrady to beat Houston.
Josh Smith and Marvin Williams each had 20 points for the Hawks, who hit seven free throws during the final 75 seconds to seal the victory.