At least nine people, most of them children, were killed Tuesday when a lone teenage gunman opened fire at a school in the central Russian city of Kazan, officials said.

President Vladimir Putin ordered a review of gun control laws after the shooting -- one of the worst in recent Russian history -- which occurred on the first day back to school following annual May holidays.

Russia has relatively few school shootings due to normally tight security in education facilities Russia has relatively few school shootings due to normally tight security in education facilities Photo: AFP / NATALIA KOLESNIKOVA

The spree started around 9:30 am local time (0630 GMT), sparking panic among students and teachers at the School No. 175 in Kazan, the capital of the predominantly Muslim Russian republic of Tatarstan.

Amateur footage on social media, apparently filmed from a nearby building, showed people escaping from the school by jumping from second- and third-floor windows, with sounds of gunshots echoing in the schoolyard.

Police said they detained the gunman approximately one hour after initial reports of the shooting.

Map of Russia locating Kazan Map of Russia locating Kazan Photo: AFP / Paz PIZARRO

Seven of the dead were children in the eighth grade, Tatarstan regional leader Rustam Minnikhanov told reporters. He said two adults, including a teacher, also died.

Another 20 people were hospitalised, including 18 children. Six of them were in intensive care, Lazzat Khaidarov, a spokesman for the regional authorities, told AFP.

The ages of the injured people varied from between seven and 62.

Russia's FSB security service says it has prevented dozens of armed attacks on schools in recent years. Russia's FSB security service says it has prevented dozens of armed attacks on schools in recent years. Photo: AFP / NATALIA KOLESNIKOVA

Authorities have declared Wednesday a day of mourning, with Putin expressing his "deep condolences" to the victims and calling for new gun laws.

"The president gave an order to urgently work out a new provision concerning the types of weapons that can be in civilian hands, taking into account the weapon" used in the attack, his spokesman Dmitry Peskov said.

Russia has relatively few school shootings due to normally tight security in education facilities and the difficulty of buying firearms legally Russia has relatively few school shootings due to normally tight security in education facilities and the difficulty of buying firearms legally Photo: AFP / Roman Kruchinin

Images broadcast on state television showed dozens of people outside the school with fire services and police vehicles lining nearby streets and law enforcement carrying automatic weapons patrolling the area.

The Interfax news agency, citing a nearby business college, identified the shooter as Ilnaz Galyaviev, who was enrolled at the Tatarstan University of Management but was expelled one month ago for poor academic performance.

The shooting took place at School No. 175 in Kazan, the capital of the Russian republic of Tatarstan The shooting took place at School No. 175 in Kazan, the capital of the Russian republic of Tatarstan Photo: AFP / Roman Kruchinin

"He was always neat and calm, he was respectful of fellow students and teachers," a representative of the university was quoted as saying.

There were initial reports of two shooters, with one reportedly barricaded on the fourth floor of the building and killed, but officials later said a lone attacker was responsible.

Lower house State Duma speaker Vyacheslav Volodin said on his Telegram channel that Russian lawmakers will next week debate a bill tightening control over gun licences in the country.

The local community is in shock after the shooting The local community is in shock after the shooting Photo: AFP / Kirill KUDRYAVTSEV

Tatarstan leader Minnikhanov described the shooting as "a major tragedy for our republic" shortly after the building was secured.

IMAGESSoldiers stand guard and people lay flowers at a makeshift memorial for victims of the shooting at School No. 175 in the central Russian city of Kazan. At least nine people, most of them children, were killed when a lone teenage gunman opened fire. IMAGESSoldiers stand guard and people lay flowers at a makeshift memorial for victims of the shooting at School No. 175 in the central Russian city of Kazan. At least nine people, most of them children, were killed when a lone teenage gunman opened fire. Photo: AFPTV / Andrey BORODULIN

"We are deeply saddened that this has happened," he told reporters.

He described the detained assailant as a "terrorist" and said the 19-year-old shooter had a licence to carry a firearm.

A source told Interfax that Galyaviev had been armed with a Turkish-made Hatsan escort shotgun, the same weapon used in a mass shooting at a college in Kerch in Russian-annexed Crimea in 2018.

Officials ordered a minute of silence at football matches later Tuesday and both cabinet and parliament meetings honoured the victims.

Witnesses offered chilling accounts of the tragedy.

"Parents were running around, looking for their children," Andrei Stepanov, a cash-in-transit guard who lives close to the school, told AFP.

"I saw a girl with a wounded stomach being carried out unconscious," he added.

"We are in shock," says Maria Mashkova, a 33-year-old hospital receptionist. "We didn't expect that this would happen to us."

She added that her son was a fourth-grader at the school but did not go to class that day.

On Tuesday afternoon, a makeshift memorial was set up outside the school gates where tables were filled with flowers, soft toys and candles, an AFP journalist reported from the scene.

Even after dark, people queued up to pay their respects.

"The first question that arises is how could this happen, why were the children and the school unprotected," 55-year-old Larisa Vakhromeeva, an ecology specialist, told AFP outside the school.

Russia has relatively few school shootings due to normally tight security in education facilities and the difficulty of buying firearms legally, although it is possible to register hunting rifles.

In November 2019, a 19-year-old student in the far eastern town of Blagoveshchensk opened fire at his college, killing one classmate and injuring three other people before shooting himself dead.

In October 2018, another teenage gunman killed 20 people at the Kerch technical college in Crimea, the peninsula Russia annexed from Ukraine in 2014.

He was shown in camera footage wearing a similar T-shirt to Eric Harris, one of the killers in the 1999 Columbine High School shooting in the US, which left 13 people dead.

The Crimea shooter, Vladislav Roslyakov, was able to legally obtain a gun licence after undergoing marksmanship training and being examined by a psychiatrist.

The shooting led to calls for tighter gun control in Russia.