The state can have A militia, but THE Militia is made up of citizens who are NOT part of the government.
"Armed citizens, to keep the state or newly formed Federal
government in check."
James Madison - Federalist 46 - Published January 29, 1788.
"A well regulated Militia, being NECESSARY to the security
of a FREE State, the RIGHT of the PEOPLE to KEEP and
BEAR Arms, shall NOT be infringed."
Law abiding citizens ARE the Militia.