Three U.S. soldiers killed in attack in Afghanistan