A customs officer avoided prison time but was sentenced to five years probation for his role in a gun buying scheme.