Moroccan authorities said they had dismantled a "terrorist cell" operating in several cities that included people trained in the use of firearms and explosives.