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 Iran's leaked deal terms are untrue
Trump says Iran war deal close as Strait of Hormuz tensions linger
Victims' families mark Air India crash anniversary with prayers and tributes
Ebola outbreak spreads to crowded displacement camp in Congo
Fire breaks out at New Zealand's Wellington airport, disrupting flights
Ukraine and Russia trade overnight drone strikes, officials say
UN says Taliban arrest 30 women for violating hijab rules in Afghanistan
Trump cancels US strikes on Iran, citing progress in talks
