Ex-PM to head Russian foreign intelligence