A special agent with the Internal Revenue Service was killed at a gun range in Phoenix.