The top general’s remarks about a “window” for talks angered Ukrainian officials, people familiar with the matter said.