I noticed while looking through the zsdx and roth repositories that there were no bomb or bow soldiers. Is it possible to make an enemy that throws bombs?
You can do like the greenknightsoldier.lua script.
But instead of going through the hero, you can make a movement that goes backward, and then at the end of the movement, make the ennemy arrow.
For the bomb, there is a map:create_bomb() (http://www.solarus-games.org/doc/latest/lua_api_map.html#lua_api_map_create_bomb), you can do this and make the ennemy to "throw" the bomb, with a movement.