Theres a few things that need go be considered first
How old is he?
And how severe is his autism?
What's the context?
Does he display racist sentiment, eg dosent like the other boy because of this ethnicity,
Or is he being factual, eg the child has skin different to him and he is describing it in the first way that comes to mind? (Younger children love poo and wee references).
It may be dependent on age, that he is not thinking about it in terms of racist connotations and is being descriptive (although in a not very nice way).
Best way to approach it will be best discussing it, as depending on how autism if you throw his Lego out it's like he will not associate what happened in school = punishment by Lego going and will be unlikely to understand the action=consequence of that sequence of events. Ideally the school need to be dealing with it straight away so it's very clear to him that the action has a consequence which can be easily connected.
Depending on age it may be worth discussing with him why he said it, so you can find out whether it was racist or a blunt factual statement, then discuss it from there, if its racist then that's not okay, if it was misplaced blunt statement, then explore why it's not okay, that sometimes even if something is blunt and a description it's not okay to say as it hurts peoples feelings etc etc.