Iraqi Prime Minister Nouri al-Maliki was in Tehran Saturday for talks that are expected to focus on a proposed U.S.-Iraq security agreement that Iran fears will keep the American military in neighboring Iraq for years .