Attorney appointed to defend man accused of killing 4-year-old girl