President Obama was the target of online criticism on Thursday from former Gov. Sarah Palin’s daughter Bristol for having extended a White House invitation to Ahmed Mohamed, the Texas teen who was handcuffed and removed from school for building a clock that was mistaken for a bomb.

“This is the kind of stuff Obama needs to STAY out of," she wrote on her blog, according to an Us Weekly report. "This encourages more racial strife that is already going on with the 'Black Lives Matter' crowd and encourages victimhood. The police made a mistake, clearly. But why put more people against them? Why egg it on?" 

RELATED: Bristol Palin says unmarried pregnancy was planned

The case caused an outpouring of support for the teen on social media, according to CNN, from figures such as Mark Zuckerberg and Hillary Clinton, with the hashtag #IStandWithAhmed  trending throughout the week.

Bobak Ferdoswi, a systems engineer at NASA, also reached out to Mohamed. "Hey Ahmed, give me a call in a couple years," he wrote. "We could always use smart, curious & creative people," he was quoted in Us Weekly.

Palin, however, took a different point of view, writing on her blog, “Childish games like this from our president have divided our country. Even more today than when he was elected."

RELATED: Sarah and Bristol Palin attack double standards in Josh Duggar coverage

In the latest development, Mohamed’s family has said that he will not be returning to MacArthur High School, according to CNN. The family claims to be weighing options for his schooling both in the United States and internationally.