Allegri: 'An unexpected defeat'