Lionel Messi scored as Miami were knocked out by Nashville