A man with a gun was fighting fiercely in an abandoned factory building as gunfire echoed beside him.