It's a story we've heard all too often. Situations like this are what inspired certain laws in North America and Europe regarding confessions being only acceptable in certain conditions and with an attorney present.
It's been documented that innocent people tend confess to crimes they did not commit following physical or psychological abuse.
EDIT:
I just wanted to add that in the Arab world, perhaps the Middle-East in general, a confession regardless if it's true or not, is admissible and may bypass a trial completely resulting in immediate sentencing. Attempting to contest a confession is often considered redundant, with few exceptions i.e. an insanity plea etc.
It's pretty messed up here because human rights are not legally recognized.