Rory McIlroy was hit with a two-shot penalty on Thursday during the opening round of the Abu Dhabi Aldar Championship.