Polish security services have detained a 19-year-old man, accusing him of seeking to establish contact with the "Islamic State" terrorist group and of plotting an attack on a Christmas market. They did not specify where.