Ahmed wasn't "arrested as a terrorist". He was arrested for supposedly causing a disruption at school. Which he shouldn't have been, but let's not let the facts get any more muddled here. This was a minor local law enforcement affair.
Talk about muddling the faacts.
He was a bright middle school kid who brought a homemade clock to school to impreess a teacher. Yes, undoubtedy occasionally absurd zero tolerance school policies had a role to play, but anyone who believes for a second he would've been arrested if he was a white Methodist boy is deluding themselves.
Whathe was arrested for was bringing a (fantastically imagined) suspicion of bringing a bomb to blow up his school. "bomb + Muslim = terrorist" as many Americans will tell you, including repeatedly mayor of that city.
this was an attack of blatant Islamophobia, but it hit a telegenic middle class kid and proved an embarrassment