Construction of exact control for a one-dimensional heat equation with delay