South Korean military fired dozens of warning shots at a North Korean vessel that crossed a contested sea boundary.