Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

A Maryland man was charged with multiple counts of murder on Friday, a day after police say he rampaged through a newsroom in Annapolis with a shotgun and killed five people in one of the deadliest attacks on journalists in U.S. history.

Jarrod Ramos, 38, from Laurel, about 25 miles (40 km) west of Annapolis, faces five counts of first degree murder in Anne Arundel County criminal court where a bail hearing was expected at 10:30 a.m. EDT (1430 GMT) Friday, The Capital Gazette newspaper group reported.

Authorities have not released the identity of the suspect, but online court records showed a man by the same name was charged with five counts of murder on Friday. Ramos had a long-standing grudge against the newspaper, and unsuccessfully sued for defamation in 2012, court records showed.

Ramos is accused of entering the Capital Gazette office on Thursday afternoon and opening fire through a glass door, hunting for victims and spraying the newsroom with gunfire as reporters hid under their desks and begged for help on social media, police and witnesses said.

Rob Hiaasen, 59, Wendi Winters, 65, Rebecca Smith, 34, Gerald Fischman, 61, and John McNamara were shot and killed. All were journalists except for Smith who was a sales assistant, said William Krampf, acting chief of the Anne Arundel County Police Department. (Reuters)

See RELATED STORY by David Knowles/Yahoo News

See more news-related photo galleries and follow us on Yahoo News Photo Twitter and Tumblr.

<p>Steve Schuh, the County Executive of Anne Arundel County, Maryland, holds a copy of the Capital Gazette as he is interviewed the day after a gunman killed five people and injured several others at the newspaper’s offices, in Annapolis, Md., June 29, 2018. (Photo: Joshua Roberts/Reuters) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Steve Schuh, the County Executive of Anne Arundel County, Maryland, holds a copy of the Capital Gazette as he is interviewed the day after a gunman killed five people and injured several others at the newspaper’s offices, in Annapolis, Md., June 29, 2018. (Photo: Joshua Roberts/Reuters)

<p>Jarrod Ramos, suspected of killing five people at the offices of the Capital Gazette newspaper office in Annapolis, Md., June 28, 2018 is seen in this Anne Arundel Police Department booking photo provided June 29, 2018. (Photo: Anne Arundel Police/Handout via Reuters) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Jarrod Ramos, suspected of killing five people at the offices of the Capital Gazette newspaper office in Annapolis, Md., June 28, 2018 is seen in this Anne Arundel Police Department booking photo provided June 29, 2018. (Photo: Anne Arundel Police/Handout via Reuters)

<p>Crime scene tape surrounds a building housing The Capital Gazette newspaper’s offices, Friday, June 29, 2018, in Annapolis, Md. A man armed with smoke grenades and a shotgun attacked journalists in the building Thursday, killing several people before police quickly stormed the building and arrested him, police and witnesses said. (Photo: Patrick Semansky/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Crime scene tape surrounds a building housing The Capital Gazette newspaper’s offices, Friday, June 29, 2018, in Annapolis, Md. A man armed with smoke grenades and a shotgun attacked journalists in the building Thursday, killing several people before police quickly stormed the building and arrested him, police and witnesses said. (Photo: Patrick Semansky/AP)

<p>This undated photo shows Rob Hiaasen, Capital Gazette Deputy Editor. Hiaasen was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

This undated photo shows Rob Hiaasen, Capital Gazette Deputy Editor. Hiaasen was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP)

<p>This undated photo shows Wendi Winters, reporter for the Capital Gazette. Winters was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

This undated photo shows Wendi Winters, reporter for the Capital Gazette. Winters was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP)

<p>This undated photo shows Gerald Fischman, Opinion Page Editor, member of Capital Gazette Editorial Board. Fischman was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

This undated photo shows Gerald Fischman, Opinion Page Editor, member of Capital Gazette Editorial Board. Fischman was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP)

<p>Rebecca Smith, one of the victims of the shooting at the offices of the Capital Gazette newspaper office in Annapolis, Md., June 28, 2018 is seen in this undated photo obtained by Reuters June 29, 2018. (Photo: Social media via Reuters) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Rebecca Smith, one of the victims of the shooting at the offices of the Capital Gazette newspaper office in Annapolis, Md., June 28, 2018 is seen in this undated photo obtained by Reuters June 29, 2018. (Photo: Social media via Reuters)

<p>This undated photo shows reporter John McNamara of the Capital Gazette. McNamara was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

This undated photo shows reporter John McNamara of the Capital Gazette. McNamara was one of the victims when an active shooter targeted the newsroom, Thursday, June 28, 2018 in Annapolis, Md. (Photo: The Baltimore Sun via AP)

<p>A shirt and flowers rest near the scene of a shooting at The Capital Gazette newspaper office, Friday, June 29, 2018, in Annapolis, Md. (Photo: Patrick Semansky/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

A shirt and flowers rest near the scene of a shooting at The Capital Gazette newspaper office, Friday, June 29, 2018, in Annapolis, Md. (Photo: Patrick Semansky/AP)

<p>A police officer pulls crime scene tape into place near a residence connected to a suspect who opened fire on a newspaper office in Maryland’s capital, Thursday, June 28, 2018, in Laurel, Md. (Photo: Patrick Semansky/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

A police officer pulls crime scene tape into place near a residence connected to a suspect who opened fire on a newspaper office in Maryland’s capital, Thursday, June 28, 2018, in Laurel, Md. (Photo: Patrick Semansky/AP)

<p>An emergency vehicle blocks a road leading to the scene of a shooting at The Capital Gazette newspaper’s offices at dawn, Friday, June 29, 2018, in Annapolis, Md. (Photo: Patrick Semansky/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

An emergency vehicle blocks a road leading to the scene of a shooting at The Capital Gazette newspaper’s offices at dawn, Friday, June 29, 2018, in Annapolis, Md. (Photo: Patrick Semansky/AP)

<p>A police official works the scene of a shooting at the Capital Gazette newspaper building in Annapolis, Md., on Thursday, June 28, 2018. (Photo: Michael Jordan via ZUMA Wire) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

A police official works the scene of a shooting at the Capital Gazette newspaper building in Annapolis, Md., on Thursday, June 28, 2018. (Photo: Michael Jordan via ZUMA Wire)

<p>A police officer speaks to the media near the scene of a mass shooting in Annapolis, Md., on June 28, 2018. (Photo: Yang Chenglin/Xinhua via ZUMA Wire) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

A police officer speaks to the media near the scene of a mass shooting in Annapolis, Md., on June 28, 2018. (Photo: Yang Chenglin/Xinhua via ZUMA Wire)

<p>Maryland police officers block the intersection at the building entrance, after multiple people were shot at a newspaper in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Maryland police officers block the intersection at the building entrance, after multiple people were shot at a newspaper in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP)

<p>Annapolis Mayor Gavin Buckley speaks with reporters near the scene of a shooting in Annapolis, Md., Thursday, June 28, 2018. (Photo: Susan Walsh/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Annapolis Mayor Gavin Buckley speaks with reporters near the scene of a shooting in Annapolis, Md., Thursday, June 28, 2018. (Photo: Susan Walsh/AP)

<p>Authorities work the scene after multiple people were shot at a newspaper office building in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Authorities work the scene after multiple people were shot at a newspaper office building in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP)

<p>Emergency response vehicles drive near a shooting scene after a gunman opened fire at the Capital Gazette newspaper in Annapolis, Md., June 28, 2018. (Photo: Joshua Roberts/Reuters) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Emergency response vehicles drive near a shooting scene after a gunman opened fire at the Capital Gazette newspaper in Annapolis, Md., June 28, 2018. (Photo: Joshua Roberts/Reuters)

<p>Police respond to a shooting on June 28, 2018 in Annapolis, Md. At least five people were killed Thursday when a gunman opened fire inside the offices of the Capital Gazette, a newspaper published in Annapolis, a historic city an hour east of Washington. A reporter for the daily, Phil Davis, tweeted that a ‘gunman shot through the glass door to the office and opened fire on multiple employees.”There is nothing more terrifying than hearing multiple people get shot while you’re under your desk and then hear the gunman reload,’ Davis said. (Photo: Alex Wroblewski/Getty Images) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Police respond to a shooting on June 28, 2018 in Annapolis, Md. At least five people were killed Thursday when a gunman opened fire inside the offices of the Capital Gazette, a newspaper published in Annapolis, a historic city an hour east of Washington. A reporter for the daily, Phil Davis, tweeted that a ‘gunman shot through the glass door to the office and opened fire on multiple employees.”There is nothing more terrifying than hearing multiple people get shot while you’re under your desk and then hear the gunman reload,’ Davis said. (Photo: Alex Wroblewski/Getty Images)

<p>TV crews waiting for a news conference line up at the side of the road across the newspaper office building where multiple people were shot this afternoon inside of the newsroom, in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

TV crews waiting for a news conference line up at the side of the road across the newspaper office building where multiple people were shot this afternoon inside of the newsroom, in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP)

<p>Capital Gazette reporter Chase Cook (R) and photographer Joshua McKerrow (L) work on the next days newspaper while awaiting news from their colleagues in Annapolis, Md., June 28, 2018. (Photo: Ivan Couronne/AFP/Getty Images) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Capital Gazette reporter Chase Cook (R) and photographer Joshua McKerrow (L) work on the next days newspaper while awaiting news from their colleagues in Annapolis, Md., June 28, 2018. (Photo: Ivan Couronne/AFP/Getty Images)

<p>Authorities stage at the office building entrance after multiple people were shot at The Capital Gazette newspaper in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Authorities stage at the office building entrance after multiple people were shot at The Capital Gazette newspaper in Annapolis, Md., Thursday, June 28, 2018. (Photo: Jose Luis Magana/AP)

<p>Special tactical police gather after a gunman opened fire at the Capital Gazette newspaper, killing at least five people and injuring several others in Annapolis, Md., June 28, 2018. (Photo: Joshua Roberts/Reuters) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

Special tactical police gather after a gunman opened fire at the Capital Gazette newspaper, killing at least five people and injuring several others in Annapolis, Md., June 28, 2018. (Photo: Joshua Roberts/Reuters)

<p>In this frame from video, people leave the Capital Gazette newspaper after multiple people have been shot on Thursday, June 28, 2018, in Annapolis, Md. (Photo: WJLA via AP) </p>
Shooter kills 5 at the Capital Gazette newspaper in Annapolis, Md.

In this frame from video, people leave the Capital Gazette newspaper after multiple people have been shot on Thursday, June 28, 2018, in Annapolis, Md. (Photo: WJLA via AP)

What to read next