Malaysian police are investigating a religious school's assistant warden for murder, after a schoolboy died in a case that has sparked outrage.
The accused had allegedly beaten the boy, 11-year-old Mohamed Thaqif Amin Mohd Gaddafi, with a water hose.
The boy later contracted serious infections and doctors amputated his legs. He died on Wednesday from complications.
The incident has prompted calls for greater scrutiny of religious schools.
In late January the boy enrolled in a privately-run Islamic school in the town of Kota Tinggi, in Johor state.
Police say that he was among a group of 15 boys beaten by the assistant warden on 24 March for making too much noise in the school's assembly building.
His mother pulled him out of the school when she visited several days later and found him looking weak, according to reports.
He was taken to the hospital three weeks later when his legs swelled up, apparently from blood clots. Doctors found he had contracted serious infections and had to amputate his legs.
They were about to amputate his right arm as well on Wednesday when the boy died.
Excerpts from the boy's diary, published in Malaysian media, appear to describe systematic abuse at the school, and that if one student made an error the whole group would be punished.
Police initially arrested the assistant warden - who has not been named - for child abuse, but said they were re-classifying the case as murder after Mohamed Thaqif died.
They also disclosed that the accused was a former convict previously jailed for theft.
The school has declined to comment, citing the ongoing police investigation. A separate investigation by Johor's religious authority has cleared the school of any wrongdoing.
But the head of the country's umbrella group for religious schools said CCTV footage showed the student was "only hit on one of the legs", and there was "probably a high chance that other factors" led to the boy's condition.
"There is no need to point fingers on anybody just yet... It is not right to label all religious schools to be abusive towards their students," Mohd Zahid Mahmood was quoted as saying.
A deputy minister told reporters on Wednesday night that it was "unfair for us to prematurely pin the blame on anybody" before the investigation was complete.
Prime Minister Najib Razak meanwhile has called for a speedy investigation.
Islamic authorities have said they are reassessing staff hiring guidelines for religious schools.
The case has caused an outcry, with Malaysians asking why the school hired a former convict to take care of children, and how the abuse could have gone undetected.
But at the heart of the issue is the regulation of Islamic schools - many say there is insufficient oversight.