Attorney: Deputy thought gunfire was from outside school