A two-alarm fire that ripped through a home outside of Hanover is believed to have been accidentally caused by an electrical issue, officials said.