Three accused caught in an encounter