Usually “homicide” implies murder. I hope that’s not the case here, since it would seem to be justifiable self defense.
All deaths caused by another person are called homicide by definition. When a person is executed by the state the coroner lists the death as a homicide.
‘Usually homicide implies murder’...
But not neccessarily, you’ve heard of justifiable homicide.