Go to the BP_SmartAIComponent blueprint and create a new variable called TakeDamageSound and set its type to SoundCue and tick on Instance Editable.

Open the DamageReaction function and add the nodes shown in the image below.