Of course it's a black comedy. I can't believe anyone could think the contrary. There's Verloc and his associates delusion that they are grand figures in the Anarchist movement when in fact they are little more than idle layabouts who talk big whilst doing little. There's young Steve getting blown up accidentally whilst Verloc holds his hands to his head (panicking - not out of concern for the boy, but because of what he thinks his wife will do to him) - a real 'D'oh!' moment. There's the preofessor, the crazy anarchist bomber who takes the notion of anarchism to ludicrous limits. The very title "The Secret Agent" is ironic and laced with humour (Verloc in no way meets the popular defintion of 'Secret Agent', which implies skill, cunning, dedication etc.) Conrad is deliberately poking fun at the idea of undercover political agents, highlighting the contradictions and the terrible consequences of deception.
Lifting Wikipedia's definition of 'Black Comedy' (incidentally, TSA is described as Black Comedy): 'Black comedy is similar to sick comedy, such as dead body jokes. However, in sick humor most of the humor comes from shock and revulsion; black humor usually includes an element of irony, or even fatalism.'
The fact that proceedings end tragically doesn't disqualify TSA - many black comedies end in tragic circumstances.