Hundreds flee Nigerian city as Islamist militants gain ground