(BBC) Eight people have been killed and at least 10 others injured in a shooting at a school in southern Finland, police have said.
The incident took place in Tuusula, some 50km ( 30 miles) north of the capital Helsinki.
Finnish police said an 18-year-old man killed five boys, two girls and the female principal of Jokela High School.
The gunman shot himself in the head and is in hospital in a critical condition, police said.
About a dozen other people are being treated for injuries.
Police have not identified the gunman but a teacher said he was a student at the school.
Police responded to a call made at 1144 (0944 GMT) and made contact with the gunman when they arrived at the school 11 minutes later, said Timo Leppala, the officer in charge of the police operation.
"Police ordered him to surrender, to which he answered by shooting towards the police," Mr Leppala said.
He described a scene of chaos with students jumping from school windows and running for shelter as more police arrived.
It is not clear when the gunman shot himself in the head.
Police said he was armed with a .22 calibre pistol for which he obtained a license on 19 October. He did not have a criminal record and "was from an ordinary family," a police spokesman said.
A Tuusula municipality spokeswoman said the gunman opened fire during a lesson at Jokela secondary school, which has 400 pupils between 12 and 18.
Kim Kiuru, a Jokela teacher, said the head teacher announced over the school public announcement's system just before noon (1000 GMT) that all students should remain in their classrooms.
"I stayed in the corridor to listen to more instructions having locked my classroom door," Mr Kiuru told Finland's YLE radio.
"After that I saw the gunman running with what appeared to be a small calibre handgun in his hand through the doors toward me after which I escaped to the corridor downstairs and ran in the opposite direction."
"It felt unreal - a pupil I have taught myself was running towards me, screaming, a pistol in his hand."
Mr Kiuru said he saw a woman's body as he fled the building. He said he then told his students to "jump out of the windows... and all my pupils were saved".