A man arrested after a fatal stabbing in Rotterdam is suspected of murder and attempted murder with terrorist intent, prosecutors say.