In my country (New Zealand) this would be very illegal
You cannot detain someone because you do not like their behavior, in almost all situations. In civilised countries
It is called kidnapping