Egypt military ruler accepted resignation of govt