Germany has accused the Chinese military of targeting one of its aircraft with a laser during an EU operation over the Red Sea.