the cardinal , who was head of the church in both the republic of ireland and protestant -dominated northern ireland , died of cardiac arrest in a hospital at toulouse , 95 miles from lourdes , officials said .