A senior Central Intelligence Agency officer has resigned so he can speak openly about what he sees as the government 's failure to understand the threat from the al-Qaida terrorist network .