Police officer killed, 2 injured in Karachi encounter