(CNN) — A man who had once filed a defamation suit against the Capital Gazette newspaper is accused of opening fire into the newsroom and killing five people Thursday.

Jarrod Warren Ramos, the suspect in what police called a “targeted attack” on the Annapolis, Maryland, newspaper, has been charged with five counts of first-degree murder, according to court records.

READ MORE: Over 700 University Of Michigan Students Denied Access To Campus Buildings

Ramos, 38, is scheduled to have a bail hearing at 10:30 a.m. ET Friday in Annapolis.

On Thursday afternoon, the gunman entered the building where the Capital Gazette is housed, armed with a shotgun and smoke grenades and opened fire, police said. The suspect was found hiding under a desk in the building, Anne Arundel County Executive Steven Schuh told CNN. He was taken into police custody and was being interviewed Thursday night by criminal investigators, said William Krampf, acting chief of the Anne Arundel County police.

**Embargo: Baltimore, Maryland**
A reporter with the Capital Gazette newspaper said multiple people have been shot at its office in Annapolis, Maryland on Thursday afternoon.

The five slain were Gerald Fischman, 61, editorial page editor; Rob Hiaasen, 59, an assistant editor; John McNamara, 56, a staff writer; Rebecca Smith, 34, a sales assistant; and Wendi Winters, 65, who worked in special publications.

Three others were taken to hospitals after the attack.

What we know about the Annapolis newspaper shooting

Capital Gazette: ‘Yes, we’re putting out a damn paper’
Hours after the shooting, the Capital Gazette, a newsroom in mourning, published a newspaper with a front page bearing the photos of the five employees who were killed.

“We are heartbroken, devastated. Our colleagues and friends are gone. No matter how deep our loss is nothing compared to the grief our friends’ families are feeling,” Capital editor Rick Hutzell was quoted in the paper’s front-page story.

The gunman fired through the glass door of the newsroom, Phil Davis, a Capital Gazette police reporter, tweeted shortly after the shooting. “There is nothing more terrifying than hearing multiple people get shot while you’re under your desk and then hear the gunman reload,” Davis wrote.

The newspaper, which was reeling from the attack, defiantly tweeted on Thursday: “Yes, we’re putting out a damn paper tomorrow.”

Several staffers and reporters from sister paper The Baltimore Sun worked on stories for Friday’s paper.

The opinion page in Friday’s paper was left mostly blank with a brief message: “Today, we are speechless. This page is intentionally left blank today to commemorate victims of Thursday’s shootings at our office.”

It listed the five victims’ names.

Rebecca Smith: Victim identified in Capital Gazette Shooting

Wendi Winters: Victim identified in Capital Gazette Shooting

John McNamara: Victim identified in Capital Gazette Shooting

Rob Hiaasen: Victim identified in Capital Gazette Shooting


“Tomorrow this page will return to its steady purpose of offering our readers informed opinion about the world around them, that they might be better citizens.”

READ MORE: Large Portion Of New COVID-19 Cases In Those Under 18

‘His intent was to cause harm’
Anne Arundel County police intially did not release the suspect’s name, but law enforcement sources and then later a court record identified him as Ramos.

Two law enforcement sources said his fingerprints appear to have been altered, making it difficult to identify him that way. He was identified using facial recognition software, according to one law enforcement source.

**Embargo: Baltimore, Maryland**
A reporter with the Capital Gazette newspaper said multiple people have been shot at its office in Annapolis, Maryland on Thursday afternoon.

Court documents showed that Ramos had filed a defamation claim against the paper in 2012. The dispute was over an article in the Capital Gazette that detailed his guilty plea in a 2011 harassment case.

Titled “Jarrod wants to be your friend,” the story was written by staff writer Eric Hartley and detailed the case where Ramos repeatedly contacted a former high school classmate via Facebook, according to court documents.

Court records show that in July 2012, Ramos filed a complaint against Hartley and the newspaper, alleging the story defamed him.

A Twitter account with Ramos’ name and the handle @EricHartleyFrnd is believed to belong to Ramos, a law enforcement source said. The account had tweeted several times about the paper and Hartley.

The Capital Gazette had been threatened on social media with violence as recently as Thursday, Krampf said.

“This was a targeted attack on the Capital Gazette,” he said.

He said police didn’t have knowledge that the gunman was targeting anyone in particular and can’t confirm whether the suspect knew employees at the paper or just targeted the publication.

“This person was prepared to shoot people. His intent was to cause harm,” he said.

As the investigation continued into Thursday night, Krampf said there were no further threats to the Capital Gazette or to the area.

A newsroom mourns
Journalists at the newspaper tweeted tributes and memories of their colleagues.

“The Capital is not a big newsroom. There are about 20 news staffers, a few more advertising. We are close. We are family. I am devastated,” reporter Danielle Ohl tweeted.

In a Facebook post, best-selling author and Miami Herald columnist Carl Hiaasen said he was “devastated and heartsick” to confirm the death of his brother, Rob Hiaasen, affectionately known as “Big Rob” because he towered over people.

“He spent his whole gifted career as a journalist, and he believed profoundly in the craft and mission of serving the public’s right to know the news,” Carl Hiaasen wrote.

MORE NEWS: State Farm, Arbor Day Foundation Announce Tree-Planting Collaboration

™ & © 2018 Cable News Network, Inc., a Time Warner Company. All rights reserved.