Israel's chief military censor has issued an illegal order restricting media reports and social media posts related to missile strikes.