CAIRO — A statement on the Egyptian presidental office's Twitter account has quoted Mohammed Morsi as calling military measures "a full coup."

The denouncement was posted shortly after the Egyptian military announced it was ousting Morsi, who was Egypt's first freely elected leader though he drew ire with his Islamist leanings. The military says it has replaced him with the chief justice of the Supreme Constitutional Court, called for early presidential election and suspended the Islamist-backed constitution.

Morsi was quoted as saying those measures "represent a full coup categorically rejected by all the free men of our nation."

THIS IS A BREAKING NEWS UPDATE. Check back soon for further information. AP's earlier story is below.

Egypt's military has ousted the nation's Islamist president, replacing him with the chief justice of the Supreme Constitutional Court, calling for early presidential election and suspending the Islamist-backed constitution.

Army chief Abdel-Fattah el-Sissi, in a televised address to the nation on Wednesday, said a government of technocrats will be appointed to run the country during a transition period he did not specify.

An aide of ousted President Mohammed Morsi, Ayman Ali, said the former leader has been moved to an undisclosed location. He gave no details.

Cheers erupted among millions of protesters nationwide who were demanding Morsi's ouster. Fireworks lit the Cairo night sky. Morsi supporters elsewhere in the city shouted "No to military rule."