Stockholm attack accused 'confesses'