Forty-two people, including 25 military men, have died in wildfires that erupted east of the Algerian capital, Algiers, Prime Minister Ayman Benabderrahmane said on Tuesday.