Karmapa offers prayers following New York attack