Medvedev says Mideast conflict showed that foreign military bases make host countries targets