Disruption following an earlier incident where a person was hit by a train between Poole and Bournemouth has now ended.