Three judges and a court staffer were killed in Afghanistan on Thursday after Taliban militants stopped their car in the latest attack on the judiciary, officials said.