Japan maritime chief resigns amid scandals