Officer who died in Thousand Oaks shooting was killed by another officer