When your battery is dead, the battery that you are trying to jump it with is not only trying to start the car, but also charging the flat battery.
So leave it hooked up for 30 minutes and then try again.
However, best to just be patient and charge the battery fully.
Then check the fully charged battery to make sure that it is holding its charge.