The jury has retired to consider its verdict in the trial of a man accused of murdering his brother-in-law and attempting to kill three other people during a shooting spree on Skye and in Wester Ross.