Man intended ‘public assassination of his ex-wife’ during crowded restaurant opening: Prosecutor