Nearly 8,000 space heaters have been recalled in the U.S. because they pose electric shock and fire hazards, officials said.