The chase began after the suspect allegedly attacked someone inside a church in San Francisco, according to police.