The suspect in Thursday's shooting at a Maryland newspaper was identified as Jarrod Ramos, born Dec. 21, 1979, according to three senior law enforcement officials.
At least five were killed and several others "gravely injured" during a shooting at the offices of the Capital Gazette newspaper in Annapolis, Maryland, law enforcement officials said.
Ramos was charged with five counts of first-degree murder in the shooting, NBC News reported. The suspect's bail review is scheduled to be held at 10:30 a.m. ET Friday.
The suspected shooter had a history with the paper, filing a suit against it in 2012. NBC News obtained this mugshot photo of the suspect from a prior arrest:
In 2015, Maryland's second-highest court upheld a ruling in favor of the Capital Gazette and a former reporter who were accused by Ramos of defamation.
According to a legal document, the article contended that Ramos had harassed a woman on Facebook and that he had pleaded guilty to criminal harassment. The court agreed that the contents of the article were accurate and based on public records, the document showed.
Ramos said on Twitter that he had set up an account to defend himself, and wrote in his bio that he was suing people in Anne Arundel County and "making corpses of corrupt careers and corporate entities."
The suspect fired through a glass door, looked for victims and then sprayed the newsroom of the Capital Gazette newspaper group in Annapolis with gunfire, police and a witness said.
Acting police chief of the Anne Arundel County Police Department William Krampf told a news conference that Capital Gazette assistant editor Rob Hiaasen, 59, was among the victims.
Wendi Winters, 65, Rebecca Smith, 34, Gerald Fischman, 61, and John McNamara were also killed, he said. Smith was a sales assistant and the others were journalists.
Anne Arundel County Executive Steve Schuh told reporters at a briefing following the shooting that a male suspect was in custody and was being interrogated. Authorities said they had not yet determined a motive, and declined to provide details about the weapon that was used beyond saying that it was a "long gun."
Law enforcement also identified what they believed to be an explosive device on the scene, an official said. More than 170 people were evacuated from the building after the shooting, he said.
A crime reporter at the Gazette provided harrowing details about the incident on his Twitter account in the moments after it occurred.
“Gunman shot through the glass door to the office and opened fire on multiple employees. Can’t say much more and don’t want to declare anyone dead, but it’s bad,” crime reporter Phil Davis wrote in one post. “There is nothing more terrifying than hearing multiple people get shot while you’re under your desk and then hear the gunman reload.”
Law enforcement responded to the incident in about 60 seconds, Gov. Larry Hogan told reporters following the shooting. More than 10 agencies were assisting in the investigation, a law enforcement official said.
President Donald Trump said in a Thursday post on Twitter that he had been briefed on the shooting and that his thoughts and prayers were with the victims and their families.
The Gazette is owned by The Baltimore Sun. Police were at the Sun on Thursday following the shooting, according to an article in that newspaper. Their presence at the Sun was a precaution, police said.
Tronc, owner of The Baltimore Sun, said it is deeply saddened by the attack in the Capital Gazette newsroom.
—Reuters and NBC News contributed to this report.