Shares of HDFC Bank were up even as the company's chief executive officer made a surprise announcement to not seek reappointment.