The police in Wisconsin are working to establish a motive for the attack, which left a student and teacher dead and six others injured.