A Texas flag flies over floodwaters in the city of LaGrange on Monday. (AP)

The University of Tampa has fired a visiting professor who appeared to suggest on social media that Hurricane Harvey is karma for Texas for voting Republican.

Kenneth L. Storey, a sociology professor, was immediately slammed on social media after he tweeted this Sunday: “I dont believe in instant Karma but this kinda feels like it for Texas. Hopefully this will help them realize the GOP doesnt care about them.” Two days later, he was out of a job.

In a statement Tuesday, the university denounced Storey’s comments, saying they were made on his private Twitter account and do not reflect the school’s views.

“We condemn the comments and the sentiment behind them, and understand the pain this irresponsible act has caused,” the university said, adding that other faculty members will take over Storey’s classes. “As Floridians, we are well aware of the destruction and suffering associated with tropical weather. Our thoughts and prayers are with all impacted by Hurricane Harvey.”

Storey, who also hosts a podcast, appears to have since deleted his Twitter account. Earlier, he followed up his initial tweet with two responses before deleting the entire thread, according to the Tampa Bay Times.

"What a crowd, what a turnout," President Trump said to residents of Corpus Christi, Tex., on Aug. 29, while touring the damage from Hurricane Harvey. "We're going to get you back and operating immediately," he pledged. (The Washington Post)

On Monday, he tweeted an apology, according to the Times: “I deeply regret the statement I posted yesterday. I never meant to wish ill will upon any group. I hope all affected by Harvey recover quickly.”

Storey told The Washington Post that his intention was to speak about the GOP’s denial of climate change, and he never intended to be offensive.

“I apologize. I never intended it to be taken that way,” he said. “Seeing the suffering of the people of Houston and knowing that I added more suffering to that, that’s heartbreaking to me. We need to do what we can to support them right now, and I do not do that with those tweets.”

He also said he understands the university’s decision to fire him.

“I don’t want others to be harmed by my actions,” he said.

Texas officials have confirmed that at least 22 people have died in the wake of Harvey, which has been battering the state since Friday night. Forecasters say up to 20 more inches of rain could fall on Texas and Louisiana by Thursday. Thousands have been rescued from high waters, and officials warn that many more could be forced out of their homes.

Ari Cohn, an attorney for the Foundation for Individual Rights in Education, which advocates free-speech rights at American colleges and universities, said the organization is investigating Storey’s firing, which he described as problematic.

“The University of Tampa faculty handbook very clearly promises its faculty freedom of expression and academic freedom, which includes the right to speak privately as a citizen on matters important to the individual, so long as there’s no explicit claim that he’s speaking on behalf of the university,” Cohn told The Post.

Cohn said professors should be able to express diverse views and ideas in a public forum. Storey’s firing, like similar ones in the past, sets a dangerous precedent that could force faculty members to be silent for fear of offending people online and getting fired, he said.

“Administrators, especially in recent months, have been capitulating to outrage mobs and firing professors left and right because they offended someone,” Cohn said.

In June, Lisa Durden was fired from Essex County College in Newark after she gave a combative interview on Fox News.

“Boo hoo hoo, you white people are angry because you couldn’t use your white privilege card to get invited to the Black Lives Matter’s all-black Memorial Day Celebration,” Durden told anchor Tucker Carlson.

As flood waters continue to rise from Hurricane Harvey, President Trump, administration members and Texas officials weigh in on the role of the federal government in disaster relief and the long path ahead for Texas's recovery. (Jenny Starrs/The Washington Post)

Another professor, Kathy Dettwyler, was fired the same month after she wrote on Facebook that Otto Warmbier, who was taken into custody in North Korea, then fell into a coma and died, was a “clueless white male” who “got exactly what he deserved.”

Cohn said such incidents have become more common because social media has allowed faculty members to amplify their voices and reach a wider audience.

“It also amplifies the voice of the outrage mob that eventually assembles when they offend people,” Cohn said. “If there’s one thing that university administrators are terrified of, it’s a PR disaster. With social media, it makes it much easier to cause a PR disaster. So they’re trying to make the problem go away by making the root of the issue go away.”

Social media users who commented on the university’s Facebook page have called for Storey’s firing. Several University of Tampa students also have joined the chorus of criticism, saying that as a professor, Storey should have known what not to say in a public forum.

“That was really ignorant of him to say,” Neisha Gamble, a 20-year-old entrepreneurship major, told the Tampa Bay Times. “Yes, he has free speech, but there are some things you should just keep to yourself. … There are drownings and killings happening. … Don’t wish that upon anyone, and then send a fake apology out.”

Gamble, who is from Houston, said she’s still trying to reach her family there.

“I thought it was pretty messed up,” Patrick Holt, a junior, told the Times. “Twitter’s the area of free speech, and you can say what you want, but there’s an ethical line.”

READ MORE:

A disastrous start to the school year: Students evacuated after being stranded by Hurricane Harvey

‘We were never closed’: Joel Osteen’s Houston megachurch disputes claims it shut its doors

A photo of a dog carrying a bag of food after a storm hit Texas went viral. Here’s his story.