Michael, I have not encountered the same problem as you have, but I suggest you apologize to the teacher immediately. If the situation is a serious as you say it is, you really should explain yourself. You need to tell that teacher that you did not mean any disrespect, and that you are very sorry for giving that impression. You should also ask him to explain to you what you did wrong. I think telling him about Asperger's, or atleast explaining you have social difficulties would probably be a good idea, because if something like this occurs in the future, he will probably think you are a repeat troublemaker.
Just make sure he understands that you're going to make every effort to avoid doing this again, and that you are really sorry that this happened in the first place.