Portugal detains ‘Islamic extremist’