An ex-police officer is defending his decision to shoot his ex-boyfriend in what he claimed was self-defence during two days of emotionally-charged testimony.