A teenager has been arrested after a 16-year-old boy died following reports of a "disturbance" at a beach in Ayrshire.