Authorities identified the suspected gunman as Ian David Long, 28, on Thursday.

At least 12 people, including a sheriff’s deputy, were killed in the shooting, while one was wounded, after Long threw smoke bombs and shot a bouncer, a cashier and patrons inside Borderline Bar and Grill around 11:20 p.m. local time, according to witnesses. Between eight and 15 others were injured trying to flee the shooting. Long was found dead inside the bar in an office adjacent to the entry.

“We believe he shot himself,” Dean said.

What weapon did Ian David Long use in the shooting?

Law enforcement officials said Long used a Glock 21 .45-caliber handgun in the shooting at the bar, where a number of students were gathered for a “college country night” event. Dean said the handgun is designed to hold 10 rounds and that it had an extended magazine, though it was unclear how many extra rounds it held. He said Long had legally purchased the weapon.

Long’s ex-roommate ‘shocked’ to learn of shooting

Newbury Park resident Winnet Blake, who lived with Long for several years, says he was shocked when he found out about the news.

“He was just quiet and kept to himself, he was just a roommate,” Blake tells TIME. “I was shocked, I was like ‘What the hell? This is crazy.’”

The two were roommates two separate times, once in Ventura County for 8 months and then again for a year and a half in Los Angeles County. Blake says the last time they were roommates was two years ago.

Blake adds that while the two lived together, Long mostly kept to himself. Blake said Long served in the Marines but, to his knowledge, he did not keep guns around the apartment and he was not aware if he was politically active.

“That’s not something we spoke about.” Blake says.

Long has prior run-ins with police

“We’ve have had several contacts with Mr. Long over the years, minor events,” Dean said, noting the suspected gunman was a victim of battery at a local bar in 2015.

Deputies from the Ventura County sheriff’s department responded to a call at Long’s home in April for a disturbance of peace complaint and found him acting irate and irrationally, the sheriff said. Following an evaluation from mental health specialists, they decided he did not have to be taken into custody.

Long deployed with Afghanistan with the Marine Corps

Long served in the Marine Corps from 2008 to 2013 and was specially trained as a machine gunner, according to service records. He was deployed to Afghanistan from Nov. 16, 2010 to June 14, 2011.

“The Marine Corps extends its deepest condolences to the families of the victims in this senseless tragedy,” Capt. Joseph Butterfield, a Marine spokesman, said.

Long earned the rank of corporal in August 2011 and received an honorable discharge.

Long also attended California State University and was last there in 2016, the university said in a statement to the Associated Press. Court records show he got divorced in 2013 after getting married in 2009.