World number one Rory McIlroy said he was pleased to get his first competitive hole-in-one as he had been struggling with his putter