Complex sentence: The general in charge of the base agreed to release the crew, but the aircraft would remain in Chinese custody, to be studied and disassembled: a gross breach of US military security.
Split into simpler sentences: The general in charge of the base agreed to release the crew, but the aircraft would remain in Chinese custody. To be studied and disassembled, and a gross breach of US military security.