Swiss rave shooting suspect has surrendered to police and admitted carrying out the attack that killed one person and injured six others.