Dili: The man who allegedly shot and critically wounded East Timor's president last month was in custody on Sunday after surrendering to police, military officials said.

Amaro da Costa turned himself in on Saturday, handing over two automatic weapons and some ammunition, Lieutenant Colonol Filomeno Paixao told reporters in the capital, Dili.

Da Costa, an ex-policeman, allegedly shot President Jose Ramos-Horta outside his home on February 11.

He told reporters on Sunday he "was involved" in the February 11 "incident" at Ramos-Horta's residence, but provided few other details.

Ramos-Horta is recovering from multiple rounds of surgery in an Australian hospital, while Prime Minister Xanana Gusmao escaped unharmed from an ambush on his motorcade the same day.