Jordan king says unprecedented terror attack thwarted