An "unfortunate situation" has led to the discharge of a jury in the trial of a man accused of murdering his friend