A Brownsville customs officer is behind bars on federal charges after being accused of buying rifles for an immigrant who did not have authorization to have them.