Former Bay Ridge cop sentenced in gun-running scheme