Co-judges Amanda Holden and Alesha Dixon screamed in horror during the act