Student expelled for casting a spell