WASHINGTON (Reuters) - The United States must make a long-term commitment to Afghanistan to stop security there from worsening and prevent attacks on the West by militants based there, the outgoing commander of U.S. forces in Afghanistan said on Tuesday.