Five people were injured after a bungling policeman pulled the pin out of a live grenade in a court room.