A U.S. Army private accused of sending classified U.S. documents to the secret-spilling website WikiLeaks was kept in solitary confinement, sometimes naked, for months partly because another prisoner had recently committed suicide, a former security chief testified Wednesday.