OLD BRIDGE, N.J. -- A former Marine opened fire with an assault rifle inside a New Jersey supermarket early Friday morning, killing two store employees before committing suicide, officials said.

The gunman was Terence Tyler, 23, a law enforcement source told The Associated Press. The man's identity was also confirmed by John Niccollai, the president of a food handlers' union that represents workers at the Pathmark store, who spoke to company officials about the shooting.

A Marine Corps spokesman said Tyler spent three years in the Marines and left the service in 2010. He did not deploy overseas, and the spokesman would not say whether Tyler was discharged honorably or not. Tyler's "home of record" is Brooklyn.

Tyler had been employed at the store as a clerk for about two weeks, Niccollai told The Huffington Post. After finishing his shift at around 4 a.m. on Friday, Tyler left the store and soon returned dressed in a military-style camouflage uniform and armed with an "assault-type rifle" and a pistol.

Police said the shooter fired more than 16 rounds, fatally wounding two store employees, Christina LoBrutto, 18, and Bryan Breen, 24, before turning the gun on himself.

Photos from the scene:
Story continues below

Loading Slideshow...
  • Old Bridge Shooting

    Police stationed outside the PathMark as body bags are removed from the scene where Tyler shot two coworkers and himself early Friday.

  • Old Bridge Shooting

    Detectives outside the apartment where Terence Tyler lived with his sister in Old Bridge, New Jersey, a five minute walk from the PathMark he shot two coworkers in before killing himself.

  • Bruce Kaplan

    Middlesex County prosecutor Bruce Kaplan inspects the scene of a shooting at a Pathmark grocery store in Old Bridge, N.J., Friday, Aug. 31, 2012. An employee of the supermarket opened fire at the closed store early Friday as a dozen or more colleagues worked inside, killing two of them and himself, Kaplan said. (AP Photo/Julio Cortez)

  • An Old Bridge, N.J. police officer stands in front of the home of the alleged supermarket gunman, Friday, Aug. 31, 2012. Officials say the supermarket employee killed two people at the store early Friday and then fatally shot himself. Authorities say he opened fire on employees he saw when he walked into the Pathmark store. The store's front windows were shattered by gunfire. The motive is being investigated.(AP Photo/Rich Schultz)

  • An Old Bridge police officer talks to an employee of TGI Friday's in Old Bridge N.J., Friday, Aug. 31, 2012. Officials say a supermarket employee killed two people at the store early Friday and then fatally shot himself. Authorities say he opened fire on employees he saw when he walked into the Pathmark store. The store's front windows were shattered by gunfire. The motive is being investigated.(AP Photo/Rich Schultz)

  • An Old Bridge, N.J. police officer stands in front of the home of the alleged supermarket gunman, Friday, Aug. 31, 2012. Officials say the supermarket employee killed two people at the store early Friday and then fatally shot himself. Authorities say he opened fire on employees he saw when he walked into the Pathmark store. The store's front windows were shattered by gunfire. The motive is being investigated.(AP Photo/Rich Schultz)

  • Bruce Kaplan

    Middlesex County prosecutor Bruce Kaplan, center, walks with officials on the parking lot of a Pathmark grocery store where three people died in an early morning shooting in Old Bridge, N.J., Friday, Aug. 31, 2012. Officials say a supermarket employee killed two people at the store early Friday and then fatally shot himself. Authorities say he opened fire on employees he saw when he walked into the Pathmark store. The store's front windows were shattered by gunfire. The motive is being investigated. (AP Photo/Julio Cortez)

  • Officials investigate the scene of a shooting at a Pathmark grocery store in Old Bridge, N.J., Friday, Aug. 31, 2012. Officials say a supermarket employee killed two people at the store early Friday and then fatally shot himself. Authorities say he opened fire on employees he saw when he walked into the Pathmark store. The store's front windows were shattered by gunfire. The motive is being investigated. (AP Photo/Julio Cortez)

  • Police investigate a shooting at a PathMark grocery store on Route 9 in Old Bridge, N.J., Friday, Aug. 31, 2012. A gunman allegedly entered the store early this morning when the store was closed to the public and fired a shotgun killing two employees and then himself. (AP Photo/Rich Schultz)

  • Officials investigate the scene of a shooting at a Pathmark grocery store in Old Bridge, N.J., Friday, Aug. 31, 2012. At least three people have died in the shooting. A law enforcement official briefed on the shooting says the person believed to be the shooter is among the dead. (AP Photo/Julio Cortez)

  • Bruce Kaplan

    Middlesex County prosecutor Bruce Kaplan, right, arrives at the scene of a shooting at a Pathmark grocery store in Old Bridge, N.J., Friday, Aug. 31, 2012. At least three people have died in the shooting. A law enforcement official briefed on the shooting says the person believed to be the shooter is among the dead. (AP Photo/Julio Cortez)

  • Officials investigate the scene of a shooting at a Pathmark grocery store in Old Bridge, N.J., Friday, Aug. 31, 2012. At least three people have died in the shooting. A law enforcement official briefed on the shooting says the person believed to be the shooter is among the dead. (AP Photo/Julio Cortez)

  • Officials investigate the scene of a shooting at a Pathmark grocery store in Old Bridge, N.J., Friday, Aug. 31, 2012. At least three people have died in the shooting. A law enforcement official briefed on the shooting says the person believed to be the shooter is among the dead. (AP Photo/Julio Cortez)

Tracy D'Zuro, a frequent shopper at the store, recalled both LoBrutto and Breen as friendly and welcoming.

"I met Brian and Christina shopping here. Both of them always had smiles on their faces. They were very sweet, very genuine," said D'Zuro, 26.

A candlelight vigil for the victims is being organized for 7:45 tonight outside of Old Bridge High School, where both attended school. LoBrutto had just graduated in June.

Others may have been killed in the rampage but for the quick thinking of the store's night crew chief, Rolando Reya, who ushered a group of employees out the back door as the shooting erupted, Niccollai said. About a dozen people were inside the store at the time, including the shooter, he said. Reya could not be immediately reached for comment.

"We have someone here who's really a hero," Niccollai said of Reya. "He was instrumental in getting other people out of the store."

Police have not described a possible motive for the shooting. Pathmark officials believe the victims were not specifically targeted, Niccollai said.

"This was obviously a kind of random-type shooting," he said. "Anyone he saw, he shot."

Property records show that Tyler lived about five minutes away from the Pathmark supermarket. Ricky Stevens, 26, lived two doors down. He said he saw Tyler around sometimes and knew him "just to say hey."

"He seemed like an ordinary guy," Stevens said, shrugging his shoulders.

A Facebook page for Tyler identifies him as a Marine Corps veteran from Brooklyn and includes identical service dates as those provided by the Marines, but has little personal information.

The page features a quote instead of a profile picture. "Be optimistic," it reads. "All the people you hate are eventually going to die."