A 43-year-old former student of a small Christian university in California opened fire at the school, killing at least seven people and setting off an intense, chaotic manhunt that ended with his capture at a nearby shopping centre, authorities have said.