Your friend is not going to be arrested when denied entry into the United States, though he or she may be detained.
What nationality is your friend?
Does he or she qualify for Canada's transit without visa program? If no, does he or she have a valid visa for Canada?