Original: He unsuccessfully applied for the second astronaut group but was accepted for the third group.
Simplified: He tried to get into the second astronaut training group but he was not accepted. He did get into the third group.