The Russian school shooter who gunned down nine students and staff in Kazan yesterday suffers from a brain disorder and was recently dismissed from a local technical college for poor grades, the court heard today.
Ilnaz Galyaviev, 19, rampaged through his former school armed with a rifle and homemade bombs, causing pupils to leap to safety from third-floor windows.
The seven students and two staff were laid to rest on Wednesday in the majority Muslim Russian region of Tatarstan, as Vladimir Putin called for tighter gun laws.
Family members wearing black and students of Elvira Ignatieva - a 26-year-old English teacher who reportedly died while shielding pupils from the gunman - laid flowers and read the Koran at her grave during a funeral ceremony.
Svetlana Petrenko, a spokeswoman for the Investigative Committee, which probes major crimes, said Wednesday that Galyaviev suffered from a brain disorder and had repeatedly sought medical attention for severe headaches.
Ilnaz Galyaviev, the suspect in the shooting at School No. 175, sits inside a defendants' cage during his remand hearing at the Sovetsky district court in Kazan
People react next to the grave of Elvira Ignatieva, an English language teacher who was killed in the school massacre in Kazan on Tuesday
English teacher Elvira Ignatieva, 26, was killed in the massacre. She had worked at the school for the last four years after graduating from university and was nominated for 'teacher of the year' in her district in 2018
The seven students and two staff were laid to rest on Wednesday in the majority Muslim Russian region of Tatarstan, as Vladimir Putin called for tighter gun laws
Galyaviev, a former pupil, is purportedly seen on chilling footage walking towards the school with a gun in one hand and a bag in the other before he launched the appalling assault
'His family has also noticed aggression and a quick temper in his behaviour since the beginning of this year,' she said.
The gunman was detained within an hour of the attack and he was seen in interrogation footage leaked online claiming he was God and that he had 'a monster' inside him.
All the children killed were in Ignatieva's eighth-grade class and believed to be aged 13 and 14. The second staff member killed was a teaching assistant for younger students.
The English teacher had worked at the school for the last four years after graduating from university and was nominated for 'teacher of the year' in her district in 2018.
'My niece was like a shining star: she took off, lit up and faded away,' her aunt Anna Ignatieva told AFP, crying and wearing a black scarf.
Ilnaz Galyaviev, 19, rampaged through his former school armed with a rifle and homemade bombs, causing pupils to leap to safety from third-floor windows
Mourners lay flowers at the grave of English teacher Elvira Ignatyeva during an emotional day in Kazan on Wednesday
Flowers and toys left to commemorate victims of the shooting at School No. 175 are seen outside the representative office of the Republic of Tatarstan in Moscow
Terrified pupils were seen leaping out of third floor windows in a desperate bid to escape the carnage unfolding inside the school
Twenty children including some who sustained injuries while attempting to escape the school building were hospitalised, regional authorities said on Wednesday. Three adults were also hospitalised.
Eight students were being treated for gunshot wounds and two were in a critical condition.
Horrific videos showed young children covered in blood lying on the grass outside the building in the aftermath as their weeping parents and teachers bandaged their wounds.
After the attack Putin offered condolences to the families of the victims and urged lawmakers to make the process of legally obtaining a firearm more strict.
The shooting also prompted calls among pro-Kremlin lawmakers for even tighter regulation on the internet, which opposition figures in Russia say authorities use to suppress political dissent.
Twenty children including some who sustained injuries while attempting to escape the school building were hospitalised, regional authorities said on Wednesday
A Russian flag flies at half-mast on top of the Sovetsky district court in memory of victims of the school shooting
The gunman was detained within an hour of the attack and he was seen in interrogation footage leaked online claiming he was God and that he had 'a monster' inside him
The speaker of the lower house of parliament, Vyacheslav Volodin, called on lawmakers to discuss the possibility of removing internet anonymity, requiring users to identify themselves to be allowed online.
Authorities have claimed that young Russians are being increasingly exposed to negative influences online, especially from the West.
The Russia-born founder of encrypted messenger Telegram, Pavel Durov, said Wednesday that his team had 'acted quickly' to block the gunman's account, one hour after receiving initial complaints over his channel.
Russia has relatively few school shootings due to normally tight security in education facilities.
Buying firearms legally is also not easy, although it is possible to register hunting rifles.
Officials noted that Galyaviev had undergone security and psychological tests to gain a license for the weapon.
Galyaviev was later pictured in the police station, tied up in an iron cage, where he reportedly told officers that he was 'god' and that he 'hated everybody'
Footage showed the teenage suspect, named locally as Ilnaz Galyaviev, being pinned to the ground outside by a police officer. Before the attack he posted a chilling photo to social media, calling himself 'god' and saying he wanted to rid the world of all human beings
Two young girls are seen outside the school after the attack, one has blood on her legs and hands as she receives treatment (left) and the damaged interior of the school (right)
A shotgun which was recovered from the suspect
One pupil said that they were ordered to lock their classroom doors by the headteacher over the loudspeaker system before they heard shooting erupt.
He said he saw a cleaner and a guard who had been shot while trying to prevent the gunmen from gaining access to the school were more than 700 children and 52 teachers were at work.
The youngster told local media: 'We were sitting on the third floor, we had a history lesson.
'Suddenly, in the middle of the lesson, the headmistress starts shouting into the loud speaker so that no one would open their doors.
'The class teacher quickly closed the door and literally five seconds later a big explosion went off, either on the first or on the second floor.
'We stayed together and did not open the door to anyone, but they burst into it - shots were heard, banging on the door, as if someone was trying to knock it out.
'After some time, we heard the riot police and the the deputy head shouted to us to open it.
'Firefighters came in and took us out.
'I don't know who did the shooting, and nobody knows.
'Some say they are terrorists, others say that they are eleventh graders.
'I don't know who they killed, but they killed the cleaner and the guard for sure - they tried to keep them out of the school.'
A 15-year-old boy told local media: 'Everyone started panicking and saying 'shut the doors.' About a minute later the headteacher started yelling: 'We're shutting the doors!'
'We got out about 15 minutes later, not out of the windows. I wanted to do that, but the teacher closed the window immediately and said no.'
Galyaviev left two unexploded devices inside the school building and reportedly told officers he left another device planted in his house.
Students are evacuated from the school in Kazan by ladder after shooting began
The aftermath of the shooting shows plaster, dust and wood scattered across the floors
Teachers and pupils were evacuated from the school by ladder
Paramedics and police at the school in Kazan on Tuesday after the attack which left dozens of children wounded
A large crowd gathered outside the school including worried parents as gunshots were heard in the neighbourhood
A woman wipes away tears as she stands outside the school in Kazan on Tuesday
Kazan is the capital of mainly Muslim Tatarstan, an oil-rich region on the Volga River
In a chilling message posted online before the attack, he wrote: 'Today I will kill a big amount of bio trash and will shoot myself.'
Photos from his social media accounts showed Galyaviev wearing a mask emblazoned with the word: 'God.'
Other messages read: 'As god, I want everyone to admit they are my slaves.
'You have to do absolutely everything that I want. I want each of you to kill 10+ and kill themselves. There should be no one living, this is the universe's mistake.'
He also wrote: 'I came to this world as a human to get rid of all of you.'
Reports say he told police that he learned how to make bombs on the Internet.
He also said that 'he hates everybody', and 'wanted everybody to know he is a god.'
His shocked father Rinat when found by the media said: 'What has he done?'
He was later detained.
Reached by phone he said: 'I am at the police station right now, don't bother me please.'
A mother embraces her child after the school shooting on Tuesday
Concerned locals, including parents, wait outside the school as ladders are propped up to third floor windows
A tactical response team is seen in the grounds of the school surveying the building. It was not clear if there was a shooter or shooters still at large
Members of the security forces stand guard at the entrance to the school on Tuesday
Ambulances, army and police trucks are seen outside the front of the school on Tuesday
A crowd, including concerned parents, is gathered outside the school as dozens of emergency vehicles arrived at the scene
Around 20 ambulances were on the scene, including members of the security forces.
All the other schools in the city were closed for the day as a precaution.
School shootings are rare in Russia. One of the last major shootings of its kind took place in Russian-annexed Crimea in 2018 when a student at a college killed 19 before turning his gun on himself.
Kazan is the capital of the Muslim-majority region of Tatarstan and located around 450 miles east of Moscow.