The leader of the Defense Department’s hub for integrating artificial intelligence into operations and functional purposes of the military will retire this summer.