Were there domestic (city, state) police when the Constitution/Bill of Rights were signed?
Back in the 1700's, the kings troops also had the job of enforcing the will of the king, and the king's appointed governor, upon the people. As such, it can legitimately be argued that the Founders had intended "troops" to also include any and all armed government agents.