A suspicious device that washed up on a popular beach and sparked an exclusion zone has been identified as a practice torpedo before the army retrieved it.