Prosecutors ruled that Mehmet Ali Agca , who shot Pope John Paul II in 1981 and was freed from an Istanbul prison this month where he had been serving a 10-year sentence for killing a journalist in 1979 and other crimes committed in Turkey , must serve four more years of that sentence .