A judge has ordered a mental competency exam for a teenager accused of killing three students in an Ohio high school shooting last month.