Five wounded as rival militias battle in Libya