The joke is a pun. When a riding animal breaks a leg and cannot walk, they are called 'lame'.  Doing something 'lamely' also means in an 'uncool' way.
' ' I think I ' ve broken my leg ' ' , reported Tom lamely .