A garda inspector has told a court that he feared for his life and believed he might die during an incident in Co Longford eight years ago, during which a Belgian Shepherd dog was set on him.