Ex-guardsman gets prison for supporting Islamic State