单项选择题

The police accused him of setting fire to the building but he denied ______ in the area on the night of the fire.

A.to be
B.to have been
C.having been
D.being