A representation of the chamber set Hecke algebra of an affine building