"This type of behavior simply cannot be tolerated in a civil society," a judge said before imposing the sentence.