Morocco helps France thwart terror attack