President Trump on Tuesday ordered American flags lowered in honor of the victims of last week's shooting rampage at a Maryland newspaper, after the mayor of Annapolis claimed the president initially rejected a request to do so.

“Our Nation shares the sorrow of those affected by the shooting at the Capital Gazette newspaper in Annapolis, Maryland,” Trump said in a proclamation released by the White House. “Americans across the country are united in calling upon God to be with the victims and to bring aid and comfort to their families and friends.”

On Monday, Annapolis Mayor Gavin Buckley told the Baltimore Sun that Trump had denied his request to lower flags.

“Obviously, I’m disappointed, you know? … Is there a cutoff for tragedy?” Buckley told the newspaper. “This was an attack on the press. It was an attack on freedom of speech. It’s just as important as any other tragedy.”

CAPITAL GAZETTE MURDER SUSPECT WROTE OF 'KILLING EVERY PERSON PRESENT' IN LETTERS, POLICE SAY

The circumstances of Buckley’s request are not clear. Speaking to reporters Tuesday morning, White House Press Secretary Sarah Sanders said Trump “immediately” ordered flags lowered when he learned of Buckley’s request.

Later Tuesday, Trump ordered that the flag of the United States “shall be flown at half-staff at the White House and upon all public buildings and grounds, at all military posts and naval stations, and on all naval vessels of the federal government in the District of Columbia and throughout the United States and its territories and possessions until sunset.”

The flag is also ordered lowered abroad at embassies, legations, consular offices and other facilities, the White House said.

Five people were killed in the Thursday attack.

“Journalists, like all Americans, should be free from the fear of being violently attacked while doing their job,” Trump said last week.

Fox News’ Kristin Brown contributed to this report.