John Bolton, former national security adviser to US President Donald Trump, was sentenced to six months in prison on Friday for illegally sending classified information to relatives. Prosecutors said the crime posed a threat to national security.

Bolton, who later became a public critic of the Trump administration, pleaded guilty in June to illegally retaining national defense information at his home. The offense carries a maximum prison term of 10 years.

In a letter to the judge, Bolton said he was “profoundly sorry” for his actions. Trump called Bolton a “total sleazebag” and said he deserved the punishment. “Bolton did not serve our country well and, when you don't, this is what should happen,” Trump wrote on social media.

The story is developing.