An injured person, center, is carried out of a shopping mall by an ambulance crew and emergency workers after a shooting in Alphen aan den Rijn, 15 miles (25 kilometers) southwest of Amsterdam, Netherlands, Saturday, April 9, 2011. A gunman opened fire with an automatic weapon at a shopping mall outside Amsterdam on Saturday, leaving at least four people dead and wounding 16 others, Dutch officials said. (AP Photo)

ALPHEN AAN DEN RIJN, Netherlands — A man armed with a machine gun opened fire in a crowded shopping mall on Saturday, killing six people and wounding 15, then committed suicide, officials and witnesses said.

Children were among the casualties, including an infant who was lightly injured, said Mayor Bas Eenhoorn. Three of the wounded were hospitalized in critical condition.

The rampage ended when the attacker shot himself in the head at the Ridderhof mall in Alphen aan den Rijn, a suburb 19 miles (30 kilometers) southwest of Amsterdam.

"It's too terrible for words, a shock for us all," said Eenhoorn. "Alphen is in mourning."

The gunman was identified as 24-year-old Tristan van der Vlis, and it was "all but certain" he acted alone, District Attorney Kitty Nooy said. Afterward, a note was found in the attacker's black Mercedes containing threats that he had planted explosives at three other malls in the city, said Nooy. The malls were evacuated, but no explosives were found.

A witness identified as Maart Verbeek told state broadcaster NOS the attacker appeared to be firing randomly.

"There was a panic in the mall, a lot of people running," said Verbeek, a pet shop owner. "I see the attacker coming, walking, and I go inside the store ... and I see him going by with a big machine gun."

Witness Martine Spruit, a 41-year-old receptionist, told The Associated Press she was shopping at a drug store when she heard bangs and people in the store hid behind shelves, realizing a shooting was taking place. Customers shouted for employees to lock the doors.

"Then we heard the shots getting further away, so he was walking back and forth," she said. "Then we thought we'd have a look and there were two people lying dead near the entrance... Then he came back shooting so we locked the door again."

Nooy said the shooter was a native Dutchman from Alphen who had previous run-ins with the law, including an illegal weapons possession charge when he was only 17 years old that was later dropped. He lived with his father.

He had permits for five guns, including the machine gun, Mayor Eenhoorn said.

The exact type of weapon was not identified. Dutch law forbids ownership of most firearms, but makes exceptions for some collectors and hunters. Eenhoorn said prosecutors were investigating whether the permits had been properly granted.

Queen Beatrix and Prime Minister Mark Rutte issued statements saying they were shocked and sympathize with the victims and their families.

Hours after the shooting, residents continued to gather at the mall, some of whom appeared to be in a daze.

"You hear about this sort of thing happening at American schools and you think that's a long way away," said Rob Kuipers, 50, a project manager. "Now it's happened here in the Netherlands."

Nooy said there was "no evidence" to support rumors that the gunman was a former soldier or that his mother or father had been among the dead or wounded Saturday.

Eenhoorn said both the gunman's mother and father were cooperating with the police investigation. The mother found a suicide note at her son's apartment, but Eenhoorn said it did not offer any explanation for the attack.

"The text is a farewell note," Eenhoorn said. "It says that he planned to commit suicide and a number of other things, but doesn't make reference to the terrible things he did."

Witnesses said the attacker had long blond hair and wore a black jacket and camouflage pants.

A resident who lives near the mall who gave his name as Marijn said the shooting went on for minutes. When he went to see whether friends working at the mall were OK, he saw the assailant lying dead in a grocery store.

"There was glass everywhere," the resident said. "He was just shooting everywhere as if it were the Wild West."

Images published by the NOS showed the body of the gunman lying near a checkout counter.

With his voice choking at times, Eenhoorn described the incident as a "disaster of unparalleled proportions" for Alphen, known as a quiet residential suburb. The deadly attack occurred during one of the region's first sunny days of spring, so many people were out and about.

"Under these circumstances, with many people shopping at the Ridderhof today, including parents with children, it's an almost incomprehensible situation," he said.

One unidentified witness on NOS TV said he saw the shooter change magazines of his machine gun and continue to fire.

Police commissioner Jan Stikvoort denied reports police were slow to respond, saying they arrived while the shooting was ongoing and reached the gunman just as the shooting stopped.

Although rare, shootings and violence are not unknown in the Netherlands.

In 1999, four students and a teacher were hurt in a school shooting and in 2004, a teacher was shot dead by a student.

There also have been two assassinations in the past decade, the 2002 killing of right wing politician Pim Fortuyn by an animal rights activist, and the 2004 murder of filmmaker Theo van Gogh by an Islamic extremist.

In 2009, a loner drove his car into a group of bystanders during a royal parade, killing eight and wounding 10.

Gun permits are difficult to obtain in the Netherlands, but illegal automatic weapons and ammunition are frequently seized during drug busts.

Two people were killed in Alphen in a drug-related shooting several weeks ago. Nooy said investigators do not believe the incidents are linked.