Not "legal" grounds, no. The landlord could still keep your deposit and come after you for any other costs that the deposit didn't cover until he re-rented.
Your experience is exactly why people should own guns.
When seconds count, the police are minutes away.
Check this out:
Teen Mom Kills Intruder After 911 Call