22-year-old man jailed for four years for assault of off-duty garda