Your question is based on a bit of confusion about electron acceptors that is very common and that drives microbiologists crazy. Energy (as ATP) is generated when electrons are moved from an electron donor to an electron acceptor. In respiration, the electron acceptor is inorganic -- oxygen for aerobic respiration or an inorganic molecule such as sulfate or nitrate for anaerobic respiration. Use of an organic molecule such as pyruvate as an electron acceptor is properly called fermentation. Both anaerobic respiration and fermentation are termed anaerobic because they don't use oxygen. Any introductory microbiology textbook will cover these concepts in detail, because they are important to understanding the metabolic diversity of bacteria. Brock Biology of Microorganisms is a good text.