German prosecutors are investigating a possible terrorist attack involving a Turkish-German teenager, with similarities to the 2016 Berlin Christmas market attack.