Eighteen migrants were injured while trying to illegally reach the European Union across Bosnia’s border with Croatia, Bosnian officials said on Wednesday.