A prostration prompted by an outsider's recitation is not integrated into that prayer's structure. Accordingly it is made after completing the prayer.
By contrast, a verse recited by the imam is followed by a prostration within the same congregational prayer.