A prototype for the real-time analysis of the Cherenkov Telescope Array