An 18-year-old student fatally stabbed two people at a high school in northern Slovakia on Thursday, authorities said.

One other person was in a critical condition, the Slovak rescue service said.

The stabbings took place in the town of Spisska Stara Ves, which is located on the border with Poland.

The suspect initially fled, but police said that he was detained shortly after the attack.

Police said that the suspect attacked a teacher and two students. Further details were not immediately available.

Local media reported a deputy principal of the high school and a student are the fatalities.

Interior minister Matus Sutaj Estok and education minister Tomas Drucker travelled to the town and offered their condolences to the relatives.

Mr Drucker said he will work to take steps to prevent such attacks in the future and protect students and teachers.