Is it possible to bind depth buffer to a render texture when using Kill depth buffer block?

I am using a depth-only camera with HDRP custom rendering to render the depth buffer into a render texture. However, assigning the depth-only camera to the camera property of the Kill Depth Buffer block has no effect. It seems the depth-only camera may not have a depth buffer. How can I bind the depth buffer property of the Kill Depth Buffer block to my render texture?