While explosions and gunfire continued intermittently at the elegant Taj Mahal hotel Friday afternoon , officials said commandos had killed two gunmen inside the nearby Oberoi hotel and ended the attack there .