NEW YORK (CNN) -- A New York City emergency medical technician is facing misdemeanor charges after being accused of taking a picture of a female murder victim and then posting it to his Facebook page. Mark Musarella, 49, was in court Thursday awaiting arraignment on charges of misdemeanor official misconduct. The retired New York Police detective is accused of posting the picture of a 26-year-old woman's corpse. The woman was found strangled with a hair-dryer cord March 30 on Staten Island, according to authorities, and a 28-year-old man has been charged in her death. According to Musarella's lawyer, Edward J. Pavia Jr., the appearance of the photo on the social networking site was a technical mistake and not a morbid act. Pavia said years of working as a detective instinctively led Musarella to take the picture after he was called to the scene of the death.