The verbiage about a militia is obviously merely explanatory preamble.
...well, YEAH, but explanatory preambles are not without purpose. This one definitely DOES explain the thinking behind the part after the comma. But the Militia and the People are opposing elements in the argument.
The following words are the operative words: The right of the people to keep and bear Arms, shall not be infringed. Period.