MOSCOW — Gunfire and explosions erupted at a school in central Russia on Tuesday, killing seven students and two school employees, according to witnesses and officials who blamed a teenager for the rare mass shooting in the country.
Within hours, President Vladimir V. Putin said he had ordered a tightening of Russia’s already restrictive laws on civilian ownership of guns, a move that is likely to be implemented in the country’s top-down political system.
“The thing is that firearms, which are used as assault rifles and similar weapons in certain countries, are sometimes registered as hunting guns,” said the Kremlin spokesman, Dmitri S. Peskov. “The Russian National Guard will urgently consider the issue.”
In a scene of mayhem captured on cellphone videos, students jumped from windows and ran as shots rang out and the police and ambulances raced to the school in Kazan, a provincial capital about 450 miles east of Moscow.
Students and teachers in the upper floors of the school barricaded themselves in classrooms and waited for help, said Vyacheslav Yegoshin, a 15-year-old who witnessed the shooting from outside the building because he was late for school Tuesday morning.
“It was scary, and everybody was crying,” Mr. Yegoshin said in a telephone interview.
A regional governor, Rustam Minnikhanov, said seven students, one teacher and an employee of the school whose job he did not specify, had died and more than 20 people were wounded. The wounded ranged in age from 7 to 62. Mr. Minnikhanov said a 19-year-old suspect was in custody.
Russia has strict laws governing civilian gun ownership. Applicants for a firearm’s license must pass psychological exams and own a smoothbore shotgun for a trial period before obtaining a rifle. Pistol ownership is more tightly controlled, largely limited to those, such as retiring military officers, who are given a pistol as an award for their service.
On Tuesday, Mr. Putin ordered the head of the agency regulating gun ownership, the Russian national guard, to draft new rules.
The order asked for a “swift working out of new positions about the types of weapons that can be in civilian circulation, can be in the hands of the population,” Mr. Peskov said.
A member of Russia’s Parliament, Aleksandr Khinshtein, said the attacker had obtained a gun license on April 28 and had used a semi-automatic shotgun in the attack.
The Russian federal government sent a plane from Moscow with medics and psychologists to help treat the children who were in the grade-one-through-11 school, called Gymnasium No. 175. The health and education ministers also flew to Kazan.
Pictures posted on social media described as scenes from inside the school after the shooting showed doors torn from their frames and debris in the hallways. It was not clear whether the doors had been ripped out during the attack or during the security service operation against the shooter.
In the most recent similar mass shooting — in 2018 at a college in Kerch, a town in Russian-occupied Crimea — 21 people were killed and 50 were wounded. Other less lethal incidents in schools and colleges followed, including several attacks with air guns and an attack with an ax in Ulan-Ude, a city in Siberia, that wounded a teacher.
In response, Nikolai Patrushev, the director of Russia’s National Security Council, in 2019 blamed unrestricted access to the internet for children, saying that it “destructively influences the consciousness and behavior of students” by exposing them to violent content.
Mr. Putin did not immediately call for stricter gun laws after the earlier shootings.
Oleg Matsnev contributed reporting.