Royals fail to close out Diamondbacks, settle for 4-4 tie