Anti-terrorism police foiled a planned attack in Seville, leading to the arrest of a jihadist suspect in Morocco, Spanish police said on Wednesday.