That would depend on when you believe a country comes into existence. If you believe it is when a group of people declare their independence from "an oppressive" government (which hasn't happened in the Gaza Strip), then they started out as civilians and turned into a military...at least in part, there were still civilians fighting. If you believe a country exist only after they win a war for independence and are recognized by the loser as such, then they were civilians.
Not really relevant to the situation over there, however.