President Obama to visit Orlando on Thursday

President Barack Obama will be traveling to Orlando this week in the aftermath of the mass shooting at a gay nightclub that claimed the lives of 49 people and ended with the gunman's death.

"On Thursday, the President will travel to Orlando, Florida to pay his respects to victims' families, and to stand in solidarity with the community as they embark on their recovery," said White House Press Secretary Josh Earnest in a statement released on Monday evening.

The gunman in the attack that killed 49 people at Pulse Orlando nightclub was inspired by extremist information over the internet, the president said Monday, calling it an apparent example of "homegrown extremism" that U.S. officials have been worrying about for years.

Obama, speaking in the Oval Office after meeting with the FBI director, said the attack appears similar to the shooting late last year in San Bernardino, California, though he added that "we don't yet know." Investigators in that attack determined the killers weren't directed from overseas but were at least partly inspired by the Islamic State group.

"At this stage, we see no clear evidence that he was directed externally," Obama said, referring to suggestions that the Islamic State group or other extremists had orchestrated the attack. "It does appear that at the last minute, he announced allegiance to ISIL," he said, using an acronym for the extremist group.

He said the probe was being treated as a terror investigation and that investigators were examining materials from the internet that the shooter may have consumed.

Obama said investigators are still looking into the motivations of the shooter and considering all possibilities. He said organizations like IS, al-Qaida and others target gays and lesbians because of their "vicious, bankrupt ideology" and their religious beliefs about homosexuality.

"The fact that it took place at a club frequented by the LGBT community I think is also relevant," Obama said. The attack took place at a gay nightclub.

Obama spoke after getting briefed on the investigation by FBI Director James Comey, Homeland Security Secretary Jeh Johnson and other officials.

Information taken from the Associated Press.