A 16-year-old high school student has been arrested in central Turkey for "insulting" President Recep Tayyip Erdogan, accusing him and his ruling party of corruption.

The arrest has sparked angry criticism from the opposition.

The boy, identified by his initials M.E.A, is believed to be a member of a leftist organisation, the Hurriyet newspaper reported.

On Wednesday in the central Anatolian city of Konya, a bastion of Erdogan's Islamic-rooted Justice and Development Party (AKP), M.E.A. delivered a speech in memory of a young secular teacher killed by Islamists in 1930, according to the newspaper.

Arrested by police at the school, he is now facing up to four years in prison if convicted on the charge.

It was the latest controversial arrest in Turkey in recent weeks.

Turkish prime minister Ahmet Davutoglu supported the court's decision of the juvenile's arrest.

"Everyone must respect the office of president whoever he is," Mr Davutoglu told Turkish media.

In his testimony to prosecutors, the boy denied links with any political party and said that the local governor's office granted permission for the commemoration ceremony organised through social media.

"I've made the statement in question. I have no intent to insult," he reportedly said.

Law community shows support

The boy's lawyer, Baris Ispir, submitted a petition to the court together with around 100 colleagues who came from Istanbul in a show of support.

"Even if he is convicted, he is 16 years old which requires a one-third reduction in his penalty," Mr Ispir said, according to the private Dogan news agency.

Riza Turmen, politician of the secular opposition Republican People's Party (CHP) denounced the arrest as a violation of the UN charter on children's rights.

"Regimes taking children out of classes by police force and putting them in jail are fascist regimes," Mr Turmen, a former judge at the European Court of Human Rights, wrote on Twitter.

"This goes against the UN charter on children's rights," he said.

Turkey's government faced an unprecedented wave of protests in 2013 against what was seen as authoritarian policies from Mr Erdogan, who was then prime minister.

The AKP government was shaken by a vast corruption scandal last December that dragged down four ministers facing accusations of bribery and influence-peddling.

Mr Erdogan, who was elected president in August, angrily accused his former ally-turned-foe, US-based cleric Fethullah Gulen, of concocting the graft scandal.

Thirty people were arrested in raids earlier this month against those deemed to have links to Gulen.

Most have now been released but a court has remanded the head of the pro-Gulen Samanyolu TV in custody on terrorism charges, as well as three former police chiefs.

It also issued an arrest warrant for Gulen himself.

In power since 2003, Mr Erdogan has brought relative stability to Turkey after years of rocky coalition governments and an economic meltdown in 2001.

But what critics describe as his increasingly authoritarian style and zero-tolerance of criticism have proved a major test for democracy in the country which has long sought to join the European Union.

AFP