A teenager detained over the slaying of an ethnic Armenian journalist has confessed to the killing, the prosecutor said Sunday.

Police captured the suspect — identified as Ogun Samast — in the Black Sea city of Samsun late on Saturday, a day after Hrant Dink was gunned down in broad daylight outside his newspaper's office in Istanbul.

The slaying stunned the nation and highlighted the precarious state of freedom of expression in a country that is vying for European Union membership.

Click here for more news from Europe.

Police said the youth was captured following a tip from his father after pictures were broadcast on Turkish television.

Chief prosecutor Ahmet Cokcinar told The Associated Press that the teenager had confessed to killing Dink during initial questioning in Samsun. He refused to give any further details.

"All I can say is that Samast confessed during his questioning yesterday," Cokcinar said by telephone.

Samast, who is 16 or 17 years old, was apparently on his way by bus from Istanbul back to his home town of Trabzon when he was caught. He was flown back to Istanbul for further questioning.

"This is a lesson to those who want to shoot at freedoms ... to those who don't want calm to reign in Turkey," Prime Minister Recep Tayyip Erdogan said in reference to the suspect's swift capture.

The photograph, taken by a security camera two blocks from the scene of Dink's shooting, had been broadcast across Turkey, and showed the suspect allegedly toting a gun and running from the scene.

Video footage showed paramilitary police at the Samsun bus station inspecting a pistol and then placing it into an evidence bag.

Most Turks have assumed that the 52-year-old Dink, editor of the Turkish-Armenian newspaper Agos, was targeted for his public statements calling the killing of Armenians by Turks in the early 20th century genocide. Nationalists consider such statements an insult to Turkey's honor and a threat to its unity, and Dink had been showered with insults and threats.

Before the arrest, Istanbul Governor Muammer Guler had said that Dink's secretary identified the man in the photograph as the same person who had requested a meeting with Dink on the day he was killed. After the request was refused, the secretary said she saw the man waiting in front of a nearby bank about an hour before Dink was killed, Guler said.

Police also detained six other suspects in Trabzon, including Yasin Hayal, a man convicted in the bombing of a McDonald's restaurant in Trabzon in 2004, who police believe may have incited the attack, Turkish news reports said. Hayal was alleged to be an Islamic militant who learned to make bombs from Chechen militants at a camp in Azerbaijan. All six were also flown to Istanbul.

The city's chief prosecutor's office was investigating whether the teen had ties to any group, the Istanbul prosecutor, Aykut Cengiz Engin, told reporters.

Analysts also questioned whether the attack against Dink could have links to the murder by a teenager of a Catholic priest in Trabzon last year.

"Ordered murdered by a kid," headlined the liberal Radikal newspaper on Sunday.

The suspect's uncle Faik Samast told private NTV television that he didn't think his nephew — a high-school dropout — was capable of acting alone.

"He didn't even know his way around Istanbul," Samast said. "This kid was used."

Regardless of the motives behind the crime, Dink's killing brought worldwide attention once again to the precarious state of free speech in Turkey and to the dangers journalists face here.

Turkey is the world's eighth most dangerous country for journalists, according to the New York-based Committee to Protect Journalists, which counts 18 reporters killed for their work in the past 15 years.

Threats and violence against Turkish editors and reporters is not uncommon, and well-known journalists commonly receive police protection and can be seen traveling around Istanbul with bodyguards. Dink was alone when he was killed.

Guler rejected accusations that the government did not do enough to protect Dink, saying the journalist had not asked for help.

Meanwhile, mourners on Sunday held a vigil at the spot where Dink was gunned down for the third day running. Many in the crowd, which included Turks and members of Istanbul's small Armenian community, had pictures of the slain journalist pinned to their chests.

Turkey's relationship with its Armenian minority has long been haunted by a bloody past. Much of its once-influential Armenian population was killed or driven out beginning around 1915 in what an increasing number of nations are calling the first genocide of the 20th century.

Turkey acknowledges that large numbers of Armenians died but vehemently denies it was genocide, saying the overall figure is inflated and the deaths occurred in the civil unrest during the collapse of the Ottoman Empire.

Click here for more news from Europe.