Move to detain country’s leader follows his failed attempt to impose martial law