Suspected al-Qaeda militants have gunned down eight policemen in an ambush attack near a gas export facility in southern Yemen, locals say.