The incident happened shortly before the US and South Korea are due to start joint military drills.