Judge declares mistrial for man accused of murdering 18-year-old