A man has been detained for reportedly being involved in sexual communication with a teenager online