It could be he feels threatened, but - without knowing the species - I would guess it's more likely that he's stressed by something. It might be related to whatever killed the fish in the tank, or it might have something to do with your tank setup or water quality for it.
If you know what killed the fish (disease, lack of oxygen, toxins in the water, etc.) that could potentially be helpful in figuring out what's going on. Some other things that may be a factor (quoted from the thread linked below*):
Aquarium Parameters:
Aquarium type: Reef, Fish-only, Quarantine tank
Aquarium water volume
Filtration type
Lighting
How long has the aquarium been established?
Digital image of the aquarium under white light
Water quality (be sure to indicate what measurement units you are using)
Temperature
pH:
Salinity / specific gravity
Ammonia
Nitrite
Nitrate
Phosphorus
Copper
Other
https://www.reef2reef.com/threads/s...sease-treatment-and-diagnosis-section.775547/