A man charged with killing a 13-year-old in Baltimore had been running from police for two weeks after leaving a secure hospital unit for patients with psychological conditions.