The department described Det. Justin Terry’s death as a tragic accident