PARAMUS, N.J. (AP) — A 20-year-old gunman intent on dying fired multiple shots inside New Jersey's largest shopping mall, trapping hundreds of customers and employees for hours as police scoured stores for the shooter, who was found dead early Tuesday of a self-inflicted wound, authorities said. There were no other injuries.

Investigators don't believe the gunman, identified as 20-year-old Richard Shoop of Teaneck, intended to shoot anyone when he began firing at the ceiling and elsewhere at the Garden State Plaza on Monday night shortly before the mall's closing time, Bergen County Prosecutor John Molinelli said.

"We think he went in with the intent that he was not going to come out alive," Molinelli said.

He said Shoop was known to authorities and had had a problem with drugs, but he did not elaborate.

The prosecutor said Shoop left an ambiguous note with his family. While Molinelli would not call it a suicide note, he said it did "express that an end is coming. It could have been prison. ... It could have been what he did last night. It gave his family reason to reach out to us."

A phone message left at a Shoop residence in Teaneck was not immediately returned.

Chaos erupted shortly before the mall's 9:30 p.m. closing time when authorities said a man dressed in black and wearing a motorcycle helmet fired six shots. Molinelli said the gun, which was modified to look like an AK-47 assault rifle, belonged to Shoop's brother, who owned it legally and did not give his brother permission to take it.

Shoop's body was discovered around 3:20 a.m. Tuesday in a back corridor of the mall, deep within a lower level, in an area that is not accessible to the public, Paramus police Chief Kenneth Ehrenberg said. Shoop did not work at the mall, he said, and investigators were still trying to determine why he went there.

Witnesses said the sound of gunfire sent customers and employees rushing hysterically for the exits and hiding places at the mall, which will remain closed on Tuesday.

Jessica Stigliano, 21, of Ridgefield, who'd been in the food court, said she had thought, "Not many people run for their life, but that's what I'm doing right now."

Bergen County spokeswoman Jeanne Baratta said SWAT teams concentrated their search in the northeast corner of the 2.2 million-square-foot mall, near a Nordstrom store, believing the suspect might still be in the mall.

Hundreds of law enforcement officers converged on the mall, which was put on lockdown. New Jersey State Police landed a helicopter in the parking lot and SWAT teams with K-9 units initially went through the mall and started evacuating people.

Nick Woods was working in the Lego store when a woman ran by shouting that there was a shooting.

Woods said his supervisor locked them in a back room, along with a man and a child who ran into the store. When they finally peeked out two hours later, he said they saw police officers standing outside and Woods called 911 to ask that the officers be told they were coming out.

He said the emergency operator told him she couldn't contact individual police officers and that he should walk out with his hands in the air.

"I had to go out of the store shouting at the officers with my hands up, and they turned and pointed their guns at me," Woods said. "It was one of the scariest experiences of my life."

Joel Castaneda, 18, of Englewood, who was working at the Ann Taylor Loft store, also spent time locked in a back room. He said he heard several loud bangs and thought they were from construction at the mall until he saw people running.

He said people rushed into his store and locked themselves in a back room — employees and customers alike — where they pulled out cellphones to try to get news or reach loved ones.

Carlos Sinde, 36, of New York City, was alerted by fire alarms going off while he was watching previews for the 9:20 p.m. showing of the movie "Gravity" at the mall.

He said he walked into the mall where someone was saying, "I think there was a shooting," but he didn't take it seriously. Then, security guards ran up, urging customers to leave. He said one security guard was crying.

"Once the security guards started telling us what was going on, that's when there was hysteria," he said.

Early Tuesday, families were being escorted by police to a Chili's restaurant on the outskirts of the mall area to be reunited with others who had been in the mall for hours.

Najde Waters, who works in customer service at H&M, said when they heard shots his manager and store workers followed an action plan they'd rehearsed for just such a scenario.

"We all prepare, like schools do. We have a plan where we all meet up in the back of the store and if we can exit together out the front we do, but in this case we had to exit out the back," Waters said.

He said they went to their meeting place near a light pole.

The mall, which has more than 270 stores, is located about 15 miles northwest of Manhattan.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

*We welcome your comments on the stories and issues of the day and seek to provide a forum for the community to voice opinions. All comments are subject to moderator approval before being made visible on the website but are not edited. The use of profanity, obscene and vulgar language, hate speech, and racial slurs is strictly prohibited. Advertisements, promotions, spam, and links to outside websites will also be rejected. Please read our terms of service for full guides