(CNN) A man serving 24 years in a Nigerian maximum security prison used a network of accomplices to conduct an international scam that brought in $1 million, officials said.

Hope Olusegun Aroke was convicted of fraud four years ago and was held at a maximum security prison in Lagos after his conviction, according to Nigeria's economic and financial crimes commission.

While in prison, he worked with accomplices to commit fraud that targeted victims in various nations, the commission said in a statement Tuesday. During that time, he was taken to the hospital for an undisclosed illness and instead of returning to prison, he ended up in hotels, where he'd meet his wife and children, and attend social functions, authorities said.

Hope Olusegun Aroke

"Preliminary investigation revealed that the convict, against established standard practice, had access to internet and mobile phone in the correctional center where he is supposed to be serving his jail term," the commission said. "The circumstance of his admission into the hospital and those who aided his movement from the hospital to hotels and other social engagements is already being investigated."

Wilson Uwujaren, a spokesman for the economic and financial crimes commission, declined to provide details on how Aroke was able to attend social events and get perks as an inmate. He said he cannot say whether he paid off prison officials in exchange for the brief freedom.

Read More