In your case section 262 is applicable. If there were only 2 directors and now only one director is remaining then that single director can appoint second director to comply with section 252 i.e. minimum number of director.
Simply show a board meeting and pass a board resolution u/s 262 and file form 32 for appointment of new director. After approval of this form 32 file another form 32 for cessation of director due to death.