The gunman who attacked Istanbul's police headquarters and an office of the ruling Justice and Development Party (AK Party) on Friday has been identified as a member of the Revolutionary People's Liberation Party-Front (DHKP-C) terror group.