The Duke and Duchess of Cambridge say they were left shocked and saddened by the attack