​​A judge has ordered a mental health assessment to be carried out on a teenage boy charged with murdering a man in Co Tyrone.