A former Kent school teacher has been sentenced after sending death threats to Conservative leader Kemi Badenoch in which he claimed to be ex-IRA.