French official: Militants planned attacks