One of Britain's largest species of beetle has been found in Dorset, more than 200 years since its last recorded sighting in the county.