A space rock the size of an Olympic swimming pool will pass harmlessly within 28,000km of Earth on Friday – just a tenth the distance to the Moon.