Four cops booked for detaining person illegally