The attorney general for Washington, D.C., has issued subpoenas to the National Rifle Association and its related charitable foundation as part of an investigation into allegations of financial misconduct inside the powerful gun lobbying organization.