Bairstow responded with a century