He was also charged with illegally possessing explosives, a nod to the hive of booby traps found inside his apartment, apparently designed to maim or kill anyone who came looking for Mr. Holmes after the July 20 shootings at a midnight screening of ''The Dark Knight Rises.''