An armed group attacks the French embassy in Burkina Faso and the country's military headquarters before being repelled, leaving six assailants dead, the government says.