One of two men accused of shooting dead a young woman was acting in self-defence and the alleged victim had a firearm, a defence solicitor has claimed.