The Florida megachurch pastor who was found dead in his Times Square hotel room in August 2011 was killed by “intoxication by the combined effects of cocaine and heroin,” a spokeswoman for the Office of the Chief Medical Examiner said Thursday.

Rev. Zachery Tims Jr.’s, death has been ruled an accident, the spokeswoman said.

The disclosure comes after Mr. Tims’s family took legal steps to try to prevent the medical examiner from releasing his official cause of death. The lawyer representing Mr. Tims’s family, Ricardo Oquendo, did not immediately return a call for comment.

A law-enforcement official said at the time that a white, powdery substance was found in his pocket.

Mr. Tims, who was 42, led a congregation of about 8,000 followers in Orlando at the New Destiny Christian Center.