Tyler was working a night shift with 12 to 14 other employees when he left the store around 3:30 a.m., Middlesex County Prosecutor Bruce Kaplan said at a news conference.

He came back a short time later armed with an AK-47 and an automatic pistol and opened fire, shooting randomly at his co-workers, Kaplan said. By the time SWAT teams had arrived, Tyler — who reportedly suffered from depression — had taken his own life with a handgun.

“Broken glass in the front of the store, it appears he might have started firing as he was entering the store,” Kaplan said.

Terence Tyler, 23. (credit: Image via CBS 2)

While some of the workers were able to hide, two employees, 18-year-old Cristina LoBrutto and 24-year-old Bryan Breen, were shot and killed, Sloan reported.

Both Breen and LoBrutto worked as cashiers at the store, 1010 WINS’ Steve Sandberg reported.

“This was her first overnight shift,” said one of LoBrutto’s friends.

“Her parents never let her out past 12,” said another friend.

Kaplan said he doesn’t believe the victims were specifically targeted.

“I believe everybody in the store was a target. It appears he opened fire on the employees that he observed in the store when he entered the store,” he said.

“We are praying for all of the victims and their families,” the LoBrutto family said in a statement, while also requesting privacy during their grief.

Pathmark issued a statement saying the company was “terribly saddened” by the shooting.

“We express our deepest sympathies to the families of the victims and our appreciation to local law enforcement. Our main concern is the safety of our associates and customers,” the statement said. “We continue to work with local authorities during the investigation.”