The plane was en route to Bechar in south-western Algeria when it crashed near a military base in Boufarik, Algeria's state news agency says.