KSE-100 erases intraday gains to end flat