A professional golfer has received a two-stroke penalty that cost him a share of the first-round lead at the PGA Championship in Pennsylvania.