A few weeks later , he was overthrown by General Ayub Khan , who then declared himself president . A few weeks later , he was overthrown in a bloodless coup d' Ã tat by General Ayub Khan , who then declared himself President .