The U.S. Army has dropped all criminal charges against an officer in connection with the beating deaths of two detainees in Afghanistan in 2002 .