Russian writer Zakhar Prilepin was barred from entering Bosnia on Thursday on security grounds, in a move that angered Bosnian Serbs and the Russian Embassy.