A former BBC TV chief has warned that the BBC was "manipulated by terrorists" over its controversial Gaza documentary.