A man has gone on trial accused of murdering his brother-in-law during a shotgun rampage on Skye.