A suicide bomber on a motorcycle attacked a police station in the Indonesian city of Solo on Tuesday, killing himself and wounding a police officer.