A man barricaded inside a Rocky Mount home for nearly 20 hours ended Tuesday morning when he shot himself as State Bureau of Investigation agents entered his home.