Two Hamas militants drove to a bus station in Jerusalem and opened fire on a group of civilians, killing three people.