Updated: September 8, 2010, 7:27 PM ET

Milos Teodosic's 3-pointer sinks Spain

ESPN.com news services

Serbia knocked defending champion Spain out of the world championship Wednesday when Milos Teodosic made a long 3-pointer with 3.1 seconds left for a 92-89 quarterfinal victory.

Spain erased an eight-point deficit in the final four minutes to tie it on Marc Gasol's basket with 25 seconds remaining. After a timeout, Serbia patiently ran its offense until Teodosic -- 1-of-7 on 3-pointers at that point -- pulled up from straightaway, well beyond the arc.

"He's a great player and he has a great feeling for the big shot," Spain coach Sergio Scariolo said.

The Spaniards couldn't get a final shot off, with Jorge Garbajosa losing the ball after a timeout. Serbia's players celebrated at midcourt as Spain's Sergio Llull kicked the ball deep into the stands.

"I think it was a very, very tough game. Maybe the best one until now in Istanbul," Serbia coach Dusan Ivkovic said.

Serbia advanced to face Turkey in a semifinal game Saturday.

"It's very difficult to forget this kind of game, but we have to try to forget everything that happened tonight because in two days we will play in the semifinals," Teodosic said.

Marko Keselj and Novica Velickovic scored 17 points apiece for Serbia, while Dusko Savanovic added 15. The Serbians were 15-of-30 from 3-point range, exploiting the zone seemingly every time Spain used it.

"We were not able to stop them on the long shots," Spain guard Juan Carlos Navarro said. "That's why we lost and I believe that's why they deserved to win."

Navarro scored 27 points and Garbajosa, the former Toronto Raptors forward who recovered from a severe leg injury, added 18.

But the Spaniards, considered the co-favorites along with the United States coming into the tournament, lost for the third time in Turkey. They were without their best player, Lakers All-Star Pau Gasol, then lost point guard Jose Calderon of the Raptors shortly before the tournament.

The champions in Japan four years ago now will be forced to qualify for the 2012 Olympics at next year's European championship.

Teodosic, one of the two Serbia players suspended for a brawl in an exhibition game against Greece, finished with 12 points. Center Nenad Krstic of the Oklahoma City Thunder, the other suspended Serb, finished with 13 points and nine rebounds.

Turkey 95, Slovenia 68

Ersan Ilyasova scored 19 points and undefeated Turkey hit 10 of 17 3-pointers in its 95-68 victory over Slovenia in the world championship quarterfinals.

"The guys, they flied," Turkey coach Bogdan Tanjevic said. "They played the best of these seven games."

Turkey will face Serbia in the semifinals Saturday. Turkey will finish in the top four for the first time at an Olympics or world championship.

Turkey was 8-of-11 from 3-point range in the first half to take a 50-31 lead.

"They spread the floor really well," said Bostjan Nachbar, who scored 16 points. "We didn't adjust well to that and we were not aggressive enough today to make them take tough shots, to use fouls and all that, so we pretty much gave them open shots and they took advantage of that."

Sani Becirovic had 16 points for Slovenia.

Information from The Associated Press was used in this report.