Calcium supplements, commonly taken by older people for osteoporosis, are associated with an increased risk of a heart attack, a new study finds.