Two policemen, a dacoit killed in encounter