Bad behavior is a indication of ignorance in the true definition of the word. The thing I have done in these cases has been to ask to speak with the student privately to gain insight about the true essence of who they are.
I have been abl eto gather data that has allowed me to not only understand the student, but have learned to work with them.