Unraveling the Nanosecond Photoresponse of Layered HgPSe3