New Mexico police: Planned attack led to university shooting