Police: FedEx shooter legally bought guns used in shooting