Judge censures cartoonist over court outburst against ‘terrorist attacker’