Officials said the man did not appear to be targeting Trump or others involved in the trial
The monarch accepted the resignation of premier Abdullah Ensour, as is customary under the constitution before appointing an interim head of government to oversee the election.
Parliament had ended its four-year term and the election should be held within four months under the constitution.