Pentagon says top Navy official to leave office ‘immediately’