The police personnel had allegedly arrested a man after an encounter in a robbery case, even though he was lodged in jail at the time