Authorities were trying to determine Tuesday what caused a teenager to gun down his grandfather, put on the man's police-issue belt and bulletproof vest, and drive his marked squad car to a high school, where he began shooting his classmates at will.