Complex sentence: The Japanese had kept their secrets closely guarded, and while senior American officials were aware that war was imminent, they did not expect an attack on Pearl Harbor.
Split into simpler sentences: The Japanese had kept their secrets closely guarded. Senior American officials were aware that war was imminent, but they did not expect an attack on Pearl Harbor.