A Lancaster County judge ruled Thursday that a man accused of killing a 76-year-old in a north Lincoln home is not mentally competent to stand trial.