Mr. Obama , a freshman Democratic senator from Illinois , was in Kenya 's capital on Friday as part of a tightly scripted four-country tour in Africa to raise awareness for AIDS and to reconnect with his roots .