Three arrested in terror inquiry