US working to prevent more attacks in Afghanistan