Three alleged dacoits killed in encounter with police