The San Diego gunman called 911 to confess ‘I just shot up a synagogue,’ then arranged to surrender, affidavit shows