OLD BRIDGE, N.J. -- Unhappy with his life as a Marine stationed in California, Terence Tyler posed a question three years ago on Twitter: "is it normal to want to kill ALL of ur coworkers?"

Struggling with depression, he left the Marines and recently started working at a supermarket in New Jersey.

On Friday morning, Tyler shot two co-workers and himself, police said. The 23-year-old, clad in desert camouflage gear, opened fire at a Pathmark store in Old Bridge Township, authorities said.

Authorities are investigating his motive, but family members said Tyler was discharged from the Marines two years ago after suffering from depression and had never gotten over his mother's death about five years ago.

Authorities said Tyler left his job as an overnight clerk at the Pathmark about 3:30 a.m. He drove off and returned to the store shortly afterward with a handgun and an assault rifle, Middlesex County Prosecutor Bruce Kaplan said. About a dozen workers were in the closed store, putting new prices into a computer.

Tyler fired more than 16 rounds from his rifle – shooting at an employee standing outside and blowing out windows, authorities said. He shot at five other workers in an aisle, killing Christina LoBrutto, 18, and Bryan Breen, 24, the prosecutor said.

Tyler, who began working at the supermarket less than two weeks ago, then drew his handgun and killed himself, Kaplan said.

Several ammunition magazines were recovered along with the rifle and a .45-caliber handgun, he said.

"I do not believe that they were specifically targeted," Kaplan said of the two victims. "I believe everybody in the store was a target."

John Niccollai, president of a foodworkers union, said many of the employees escaped harm when an assistant manager directed them toward a back door.

Breen and LoBrutto were both cashiers. They normally worked day shifts, but pulled overnight shifts every few weeks to put in new price changes, Niccollai said. Tyler began work for Pathmark Aug. 20 as a night clerk, stocking shelves.

Pathmark worker Miranda Miranda said she steered clear of Tyler.

"The way he looked at me, he gave me an uneasy vibe," she said.

Miranda usually worked the overnight shift Thursday but said LoBrutto agreed to work the shift for her a few weeks ago. "That could've been me," Miranda said.

Tyler was discharged from the Marines in 2010, nearly two years in the service at Twentynine Palms, Calif., according to the Marines. The infantryman from New York City never served overseas, said Marine spokeswoman Capt. Kendra Motz. She wouldn't comment on the circumstances of his discharge.

Tyler's Twitter account, which has a photograph identified by family members as Tyler, interspersed posts about hating Marine life, expressions of violence, and his take on football, movies, women and other interests.

"smh is it normal to want to kill ALL of ur coworkers?Maybe but I'm actually in a position where I can,smh," he wrote in June 2009, using the handle (at)Tylerbkstyle and the abbreviation "smh" for "shaking my head."

Tyler tweeted months later about killing.

"I'm starting to see why plp go on killin sprees," he wrote. And these (obscenity) are reeeeeeally pushin my kill everyone I see button."

At the top of Tyler's Facebook page was the motto: "Be optimistic. All the people you hate are going to eventually die."

Christopher Dyson, Tyler's uncle, said Tyler left the Marines after suffering from depression. A cousin said Tyler had been hospitalized.

Tyler, who also lived in San Diego, left California in June for New Jersey, where he lived with his sister and uncle.

"He was a quiet cat, you know?" said Dyson, who works at the store and helped Tyler get a job there.

His cousin, Shanteya Dyson, said Tyler had not been the same since his mother died of cancer.

"That was his best friend. He was always a quiet guy. But he got more quiet. He really didn't speak at all. He was just blank," Dyson said.

Tyler spent the July 4 weekend drinking at Jersey shore bars with Manase Acheantong.

"We went out. We had drinks. He was a normal kid. He didn't start no fights. He didn't seem crazy," said Acheantong, 25, of Old Bridge.

Pathmark's parent company, Montvale-based Great Atlantic & Pacific Tea Co., said the company was "deeply saddened" by the shooting and was cooperating with investigators.

LoBrutto and Breen both graduated from Old Bridge School. LoBrutto was a horn player in the school band and graduated this year, Schools Superintendent Timothy Brennan said. Breen graduated in 2006.

Jessica Ruano knew LoBrutto from school. "She was a really bubbly girl," said Ruano, 16. "She was silly. She was sweet."

___

Henry contributed to this report from Newark. Associated Press writers Alex Katz in New York City, Geoff Mulvihill and Larry Rosenthal in Trenton, and Julio Cortez in Old Bridge also contributed to this report.

Related on HuffPost:

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)