*watching*
My 240D doesn't have any such noises so I am sorta without advice.
I would suspect the valve train but if you end up not being able to find what it is, just let go a little and keep an eye on stuff.
If it dissapears then most likely it was a valve