“She was like, it looks like a bomb,” he told the DallasNews, adding, “It doesn’t look like a bomb to me.”

Ahmed was later taken out of class by the principal and questioned by five police officers who demanded to know his intentions and why he brought the device into school.

“It could reasonably be mistaken as a device if left in a bathroom or under a car. The concern was, what was this thing built for? Do we take him into custody?” said police spokesperson James McLellan.

Ahmed was marched out of the school in handcuffs and taken to a juvenile detention center to take his fingerprints. But the high schooler says he never claimed the device was anything but a clock.

“They thought, ‘How could someone like this build something like this unless it’s a threat?’” Ahmed said.

His father Mohamed Elhassan Mohamed, who had emigrated to the U.S. from Sudan, believes his son’s ethnicity may have been a factor. “He just wants to invent good things for mankind,” he said. “But because his name is Mohamed and because of Sept. 11, I think my son got mistreated.”