Police chief: Locked doors kept shooter out of church