Uttering sounds like "Uff" or "Ah" intentionally due to worldly annoyance invalidates the prayer.

Invalidations of Prayer (مفسدات الصلاة) Part 1: Speech and Sounds