Original: In September 1917, the Ottomans caught her carrier pigeon with a message to the British and decrypted the Nili code.
Simplified: In September 1917 the Ottomans caught one of her carrier pigeons which they then worked out (decrypted) and found out where she was.