The 14-year-old Muslim student who was arrested for bringing a homemade digital clock to his Texas high school after it was mistaken for a bomb has received an outpouring of global support and invitations to visit the White House and Facebook.

Ahmed Mohamed was detained on Monday after he tried to "impress" his teacher at the MacArthur High School in Irving, Texas by showing her a clock that he had built, reports CNN. However, the teacher mistakenly thought the device was a bomb and notified authorities. The teen was then placed in handcuffs and interrogated as a suspected terrorist.

"She saw a clock that, in her opinion, looked like a threat to her," Ahmed said of the unnamed teacher during an interview on "Good Morning America." "It felt really weird getting arrested because I never thought I'd ever get arrested."

During his interrogation, the freshman student says he repeatedly told officials he had brought a clock to school, not a bomb, and that he was not allowed to contact his parents.

"I repeatedly told them, 'It's a clock,' but no matter how much I told them, I guess that's not a bold enough answer to them," he said of police. "I want it [the clock] back, with my humility."

Eventually, he was released from custody and police dropped their charges. However, school officials and the mayor of the Texas town have refused to issue an apology. Instead, they defended their actions.

On the other hand, social media users and celebrities showed their support for the teen using the hashtag #IStandWithAhmed. Others say that he was a victim of profiling due to his ethnicity and religion.

Mohammad also received several different personal invitations from Silicon Valley and the Massachusetts Institute of Technology (MIT), his dream school.

"Having the skill and ambition to build something cool should lead to applause, not arrest. The future belongs to people like Ahmed," wrote Facebook CEO Mark Zuckerberg. "Ahmed, if you ever want to come by Facebook, I'd love to meet you."

"Cool clock, Ahmed," tweeted President Obama. "Want to bring it to the White House? We should inspire more kids like you to like science. It's what makes America great."

In response, the teen expressed his gratitude for his supporters.

"I was scared at the moment but now I feel really happy that I'm getting all this support from all over the world and the support isn't just for me but it's for everyone who's been through this," he said. "I wanted to have my teacher see that I want to be an engineer when I grow up, so I guess now I get millions of people watching me be an engineer."