Corbyn 'shocked and appalled' by attack