The Czech Republic has declared Saturday a national day of mourning after a gunman killed 14 people and injured 25 at a university in Prague.
President Petr Pavel expressed his “great sadness” and “helpless anger at the totally unnecessary” loss of life.
The gunman, who police said had been “eliminated”, is believed to have also killed his father and may be linked to the deaths of two people last week.
It is one of the worst mass shootings in recent European history.
The shooting began at around 15:00 local time (14:00 GMT) on Thursday at the Faculty of Arts building of Charles University in the centre of the Czech capital.
The gunman opened fire in the corridors and classrooms of the building, apparently killing at random, while staff and students used furniture to barricade themselves into rooms.
Dramatic footage shared on social media shows people jumping to safety from an exterior ledge several stories up. Gunshots can also be heard.
Police say the gunman was a 24-year-old student at the university and had no prior criminal record, though they add that a “huge arsenal of weapons and ammunition” was found.
Before the shooting, police had received a report that the suspect was believed to be heading to Prague from a nearby town with the intention of killing himself.
A short time later, the man’s father was discovered dead.
Of the 25 people wounded in the shooting, 10 were injured seriously, police said, adding that no officers had been hurt.
“It is hard to find the words to express condemnation on the one hand and, on the other, the pain and sorrow that our entire society is feeling in these days before Christmas.”
He said Saturday would be a day of mourning, adding that flags would be flown at half-mast on all public buildings and that a minute’s silence would be observed at midday.
On Thursday evening, people lit candles and left flowers near the scene of the shooting.
The motive for the shooting is as yet unclear.
Police said they had unconfirmed information from a social media account that the attack had been inspired by a similar incident in Russia, though did not provide further details.
They said the gunman was also suspected in the killing of a young man and his two-month-old daughter who were found dead in a forest on the outskirts of Prague on 15 December.
Founded in 1347, Charles University is the oldest and largest university in the Czech Republic and one of the oldest such institutions in Europe.
The motive for the shooting is as yet unclear.