The anaerobic chemical reactions and pathways resulting in the breakdown of a nitrogen-containing compound, yielding energy in the form of ATP.