The former officer send messages via WhatsApp to a woman who had been detained