Judge: FBI agent who accidentally shot man while doing backflip on dance floor can still carry gun