A student killed a female teacher and classmate with a knife and injured another classmate at a high school in northern Slovakia on Thursday.
Several emergency crews were dispatched to the school in Spisska Stara Ves, where two people were discovered dead and a third was taken to hospital with medium-severity injuries, emergency services spokesperson Danka Capakova told Reuters.
The emergency services said the victims were 51 and 18, both female, and the injured was an 18 year-old woman.
The three attacked were a female teacher and two classmates, Interior Minister Matus Sutaj Estok said on Facebook.
"The 18-year old (male) student suspected of committing a serious act in Spisska Stara Ves was detained a very short time after the incident," the police said earlier on Facebook.
Estok, the minister of education and the chief of police headed to the scene in Spisska Stara Ves, a town of around 2,000 people on the Polish border, 376 km (234 miles) north-east of the capital Bratislava.
Serious violence is rare in Slovakia, a central European nation of 5.4 million. The country was shocked last May when Prime Minister Robert Fico was shot in an assassination attempt.
"No problem in the world can be resolved with a knife or any other weapon," President Peter Pellegrini said in a statement.

Trump says there will either be a deal with Iran or US will 'finish the job'
Death toll from Venezuela quakes rises to 3,535 as thousands remain displaced
Russian strikes kill 26, exposing Ukraine air-defence shortages
Clashes escalate at Sri Lanka prison to leave 25 dead, many more injured
Six killed in India's Mumbai as rains wreak havoc, disrupt travel