The ship was about 40km offshore. That’s well inside onshore radar and it was very likely observable by people onshore as well. That’s just too close. Artillery could have hit it at that range.
40km = 24.8 miles. That ship was just begging to
used for target practice.