Rights groups condemn hanging of security detainees