Is it a death-watch beetle?! Seriously, I thought it was a woodpecker tapping a tree in the distance. On investigation the sound is coming from inside a beam. It has been treated for woodworm so I'm surprised to hear it.