In a case that has stirred debate about free speech on college campuses, an adjunct professor at a Massachusetts college was fired on Thursday after posting on Facebook what he described as a joke suggesting that Iran pick sites in the United States to bomb.

The professor, Asheen Phansey, wrote on his personal Facebook page on Jan. 5 that Iran’s supreme leader should “tweet a list of 52 sites of beloved American cultural heritage that he would bomb,” suggesting the Mall of America in Minnesota and a Kardashian residence as targets, Judy Rakowsky, a spokeswoman for Mr. Phansey, said on Saturday.

The post was a response to President Trump’s comments that he would target Iranian cultural sites if Iran retaliated against the United States for killing one of its top generals. The Pentagon later ruled out striking Iranian cultural sites because of “the laws of armed conflict.”

Mr. Phansey deleted his post, but not before it was captured in a screengrab and circulated on social media with the school’s phone number.