Military drills will be carried out near a popular beach with an exclusion zone in place.