Pentagon chief presses military for a smooth transition and to obey all lawful orders