German navy chief resigns after controversial Russia comments