His resignation came more than a week after he was involved in an argument on Twitter which started when he posted a message about the derogatory cartoons the Charlie Hebdo magazine published before the attacks on its Paris offices, in which 12 people were killed.