Hamas, which rules Gaza, said Israeli undercover forces entered the territory in a civilian vehicle late Sunday and exchanged fire with Hamas gunmen.