South Korean minister resigns amid tensions with North