Judge rules 10-year-old girl incompetent in baby death