NEW YORK - The New York City Police Department has deployed counterterrorism teams to media organizations in and around the city following Thursday's deadly shooting in Maryland.

At least five people have been confirmed dead and multiple injuries reported at the scene inside the Capital Gazette in Annapolis.

The paper is owned by the Baltimore Sun.

A law enforcement official tells the Associated Press the suspect, who was armed with a long gun, has been identified as Jarrod W. Ramos.

He remains in custody and is being questioned.

Police say the Capital Gazette received threats on social media before the shooting, but have not confirmed if they came from the suspected shooter.

A law enforcement official says the shooter mutilated his fingers to keep from being easily identified. 

Police say he also used canisters of smoke grenades when he entered the building.

The motive is not yet known, but police say it was a targeted attack on the paper.

Police read the names of the victims killed at a news conference Thursday night.

They include special publications editor Wendi Winters, writer John McNamara, editorial page editor Gerald Fischman, sales assistant Rebecca Smith and assistant editor and columnist Rob Hiaasen.

President Donald Trump tweeted he was briefed on the situation before heading to Wisconsin.

The NYPD says the added presence is not based on specific threats, but instead out of an abundance of caution.

The department adds it has become a standard practice to shift resources strategically during active shooter or terrorist events.