Turkey then grabbed a dramatic winner two minutes later when Nihat broke clear to fire a right-foot shot from the edge of the penalty area that went in off the underside of the bar.
Complete Coverage: Stars to gaze at
The drama did not end there as Turkey keeper Volkan Demirel was sent off in stoppage time for pushing Koller over in an off the ball incident, Tuncay Sanli taking over in goal for the dying stages.
Turkey finished with six points, three ahead of the Czechs, who were eliminated along with co-hosts Switzerland. Portugal were top.