Sharm El-Sheikh, Egypt (CNN) -- Former Egyptian President Hosni Mubarak, now under investigation in connection with the deaths of protesters, will be transferred from a hospital here to a military hospital, an Egyptian official told CNN.

Justice Minister Mohamed Abdel Aziz said that when the former leader's health improves, he will be imprisoned.

The country's attorney general has decided to make the transfer and put the former longtime ruler under the surveillance of guards, according to Nile TV. The location of the military hospital was not immediately known.

Despite his health issues, Mubarak has been questioned and been under investigation by the Egyptian prosecutor-general's office since Tuesday.

He is being investigated in connection with the deaths of hundreds of activists during the recent uprising that led to his departure from office February 11. He is also under investigation for allegations of corruption and misuse of state funds.

Mubarak has been treated at the hospital since Tuesday for heart palpitations and blood pressure problems and is listed in stable condition, officials said.

He has been regarded as detained under the criminal investigation during a 15-day period since Tuesday.

Riot police have formed a perimeter around Mubarak's hospital in the Red Sea resort, but a commander said police have not received any orders to transfer him.

Two of his sons are also under investigation; they are in custody in Cairo.

Aziz also said Mubarak's wife, Suzanne, will be questioned by the ministry's Office of Illicit Profiteering.

CNN's Ivan Watson, Mohammed Fadel Fahmy and Salma Abdelaziz contributed to this report.