California police have announced that they have a suspect in custody in connection with a school shooting that left seven people dead.