WASHINGTON (CBSNewYork/AP) — President Barack Obama decried the deadliest mass shooting in American history on Sunday as an “act of terror” and an “act of hate” targeting a place of “solidarity and empowerment” for gays and lesbians. He urged Americans to decide whether this is the kind of “country we want to be.”

Speaking hours after the shooting at a nightclub in Orlando, Obama said the FBI would investigate the shooting as terrorism but that the alleged shooter’s motivations were unclear. He said the U.S. “must spare no effort” to determine whether the suspect, identified by authorities as Omar Mateen, had any ties to extremist groups.

“What is clear is he was a person filled with hatred,” Obama said of the alleged shooter.

Obama said this was “an especially heartbreaking day” for the lesbian, gay, bisexual and transgender community, and a sobering reminder that an attack on any American is an attack on all, regardless of their race, religion, ethnicity or sexual orientation.

“The shooter targeted a nightclub where people came together to be with friends to dance and to sing and to live,” Obama said. “The place where they were attacked is more than a nightclub it is a place of solidarity and empowerment where people come together to raise awareness, to speak their minds and to advocate for their civil rights.”

Obama also touched on gun control in his statement.

“This massacre is a further reminder of how easy it is for someone to get their hands on a weapon that lets them shoot people in a school, or in a house of worship, or a movie theater, or in a nightclub,” Obama said. “And we have to decide if that’s the kind of country we want to be, and to actively do nothing is a decision as well.”

Prior to the president’s address, presumptive Republican presidential nominee Donald Trump went on the offensive against Obama.

“Is President Obama going to finally mention the words radical Islamic terrorism? If he doesn’t he should immediately resign in disgrace!” Trump tweeted.

The Islamic State of Iraq and Syria claimed responsibility for the attack, CBS News reports.

PHOTOS: 50 DEAD IN ORLANDO NIGHTCLUB ATTACK

Law enforcement sources told CBS News the gunman has been identified as 29-year-old Omar Mateen, a U.S. citizen from Port St. Lucie, Florida.

CBS News reports Mateen called 911 and pledged allegiance to ISIS prior to the shooting.

For Obama, the hastily arranged remarks were the latest in what’s become a tragically familiar routine. Since he took office in 2009, Obama has appeared before cameras more than a dozen times following mass shootings and issued written statements after many others. The massacres have brought him to places like Newtown, Connecticut; Tucson, Arizona; and Charleston, South Carolina, to offer condolences and implore the nation to finally get serious about stemming gun violence.

After a gunman in Newtown killed 20 first graders and six adults in 2012, Obama dedicated much of the start of his second term to pushing legislation to expand background checks, ban certain assault-style weapons and cap the size of ammunition clips. That measure collapsed in the Senate, and since then, the political makeup of Congress have made new gun laws appear out of reach. Still, Obama has sought to take incremental steps using his own authority to tighten rules for obtaining a gun.

Obama spoke from the James S. Brady Press Briefing Room, named after the former press secretary who was shot and permanently disabled in an assassination attempt on President Ronald Reagan.

He also signed a proclamation on Sunday ordering flags to be flown at half-staff until sunset on Thursday in honor of the victims.

Vice President Joe Biden canceled a planned trip Sunday to Miami to hold a fundraiser for Rep. Debbie Wasserman Schultz, D-Fla. Biden’s office said he would remain at his family home in Delaware while receiving updates about the shooting before returning to Washington in the evening.

(TM and © Copyright 2016 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2016 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)