Pupils place flowers and candles in front of the Albertville school in Winnenden near Stuttgart, southern Germany.
A 17-year-old wielding a Beretta 9 mm pistol burst into classrooms at his former high school Wednesday and gunned down students — some of whom died with their pencils still in hand — in a rampage that ended with 15 dead before he took his own life, authorities said.
There was no immediate indication of motive, but the gunman's victims were primarily female: eight of nine students killed were girls, and all three teachers were women. Three men were killed later as the suspect, identified by police as Tim K., fled.
"I heard two shots and then screaming," said a 15-year-old student who gave her name only as Betty. "At first I thought it was a joke, but then someone called 'Run, run!' and I saw students jumping out of the windows and took off running."
The gunman — dressed in all black — took students in the first classroom completely by surprise, evidenced by the morbid scene that awaited the first officers to arrive, said regional police director Ralf Michelfelder.
"Children were sitting at their tables, with pencils still in their hands, their heads fallen over on the table," he said. "Most of them had shots in their head — it must have all happened in seconds."
The dark-haired teen, shown wearing glasses in pictures on German television, apparently took the weapon from his father's collection of 16 firearms along with a "multitude of ammunition," police said. His father was a member of the local gun club and kept the weapons locked away except for the pistol, which was kept in the bedroom.
A sister of the suspect attends the school.
Police received an emergency call from the school at 9:33 a.m. The first officers responded about two minutes later, said Baden Wuerttemburg state interior minister Heribert Rech. They heard shots on the second floor and ran upstairs, catching a glimpse of the suspect on a staircase, Rech said.
He fired a shot at the police and then fled, killing his last victims in the school — two teachers — on his way out, Rech said.
"Our officers were very quick," Rech said. "Through the immediate police intervention they were able to prevent a further escalation of the crime."
After fleeing the school, the suspect ran into downtown Winnenden, a town of 28,000, where he shot two people walking by a psychiatric clinic, killing one and wounding the other, police said.
The gunman then hijacked a car and forced the driver to head south while threatening his life from the back seat, triggering a land and air manhunt involving 700 police officers and four helicopters, according to Stuttgart prosecutors.
The driver swerved off the road to avoid a police checkpoint and managed to escape, while the suspect fled from the car into an industrial area in the town of Wendlingen, about 24 miles (40 kilometers) from Winnenden.
He entered a car dealership, where he shot and killed his final victims — a salesman and a man shopping for a car — and then went back outside, prosecutors said.
He opened fire on police swarming the area, who shot back and hit the suspect, who fell wounded to the ground, Michelfelder said.
But he got back up, reloaded his weapon, and fled into what turned out to be a dead-end street. Police found him there dead, having apparently shot himself in the head.
Two police officers suffered serious, but not life-threatening, injuries.
The death toll was close to that of Germany's worst school shooting.
German Chancellor Angel Merkel called the shooting "a horrific crime."
"It is hard to put into words what happened today, but our sadness and sympathy goes out to the victims' families," Merkel said.
The European Parliament, meeting in Strasbourg, France, stood in silence for a minute, to honor the victims.
"It is our task as responsible politicians in the European Union and, indeed, all the member states to do our utmost that such deeds can be prevented," said EU assembly president Hans-Gert Pottering, a German.