An armed man who barricaded himself inside a Carrboro home and held law enforcement at bay for 24 hours has surrendered, authorities said.