Death at gun range ruled accidental